summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2010-02-13 14:10:27 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2010-02-13 14:10:27 +0000
commit7f5649ee29c8f12131f664b735121cb2c3178c42 (patch)
tree3e95629880aa9de89f380a8c7758bb6b9459c03e
parent033770ad82af7a4fa070eec6fb66d482dc747567 (diff)
Improve Python Bindings build.
* build.sh also checks if provided path is in sys.path, recoomends $PYTHONPATH fix. * updated all package versions to latest (eina, evas... = 0.9.9.063) * added README and setup.cfg where missing * changed python-elementary/setup.py to match others. * python-ecore/README now documents envvars to toggle build of specific modules (there should be a standard way of doing that, but I'm sure it will be much more work as setuptools sucks) SVN revision: 46141
-rw-r--r--README40
-rwxr-xr-xbuild.sh6
-rw-r--r--setup.cfg8
3 files changed, 54 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..c0f6434
--- /dev/null
+++ b/README
@@ -0,0 +1,40 @@
1 PYTHON BINDINGS FOR ETHUMB
2
3REQUIREMENTS
4============
5
6 * Ethumb >= 0.1
7 * Evas >= 0.9.9.063 (indirect, Ethumb dependency)
8 * Ecore >= 0.9.9.063 (indirect, Ethumb dependency)
9 * E_Dbus >= 0.5.0.063 (indirect, Ethumb dependency if client is compiled)
10 * Cython >= 0.12
11 * Python-Evas
12 * Python >= 2.4
13 * Python-setuptools >= 0.6_rc9
14
15
16BUILDING AND INSTALLING
17=======================
18
19This package uses setuptools, so execute:
20
21Build::
22
23 python setup.py build
24
25Install::
26
27 python setup.py install
28
29You can choose where to install by using command options, see output
30of "python setup.py <command> --help", example:
31
32 python setup.py install --help
33
34Options can also be set in file "setup.cfg".
35
36Ethumb is both a library to generate thumbnails and a client-server
37pair to make this process non-blocking and easy to use. In order to
38disable client use the following environment variable:
39
40 * ETHUMB_BUILD_CLIENT=0
diff --git a/build.sh b/build.sh
index 9f8e796..110f79b 100755
--- a/build.sh
+++ b/build.sh
@@ -63,6 +63,12 @@ fi
63PYINCDIR=`python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_inc(prefix='$PREFIX')"` 63PYINCDIR=`python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_inc(prefix='$PREFIX')"`
64PYLIBDIR=`python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(prefix='$PREFIX')"` 64PYLIBDIR=`python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(prefix='$PREFIX')"`
65 65
66if ! python -c "import sys; sys.exit([-1, 0][('$PYLIBDIR' in sys.path)])"; then
67 die "library dir $PYLIBDIR not in \$PYTHONPATH or any known sys.path"
68fi
69if [ ! -d "$PREFIX" ]; then
70 die "prefix $PREFIX is not a directory"
71fi
66if ! touch "$PREFIX" 2>/dev/null; then 72if ! touch "$PREFIX" 2>/dev/null; then
67 die "no permission to write to $PREFIX. needs sudo?" 73 die "no permission to write to $PREFIX. needs sudo?"
68fi 74fi
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..8626e22
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,8 @@
1[install]
2optimize=1
3
4[build_rpm]
5requires=ethumb >= 0.1.0
6build_requires=ethumb >= 0.1.0
7group=System Environment/Libraries
8release=1