Centralize the python build/install bits in the top Makefile. Build for python2 and python3 (if both present)

This commit is contained in:
Jean-Francois Dockes
2018-06-01 09:42:20 +02:00
parent 7c7eafa98a
commit dae381f49b
4 changed files with 14 additions and 16 deletions
-12
View File
@@ -1,12 +0,0 @@
all:
echo libdir: $(libdir)
test '@srcdir@' = '.' || cp -rp @srcdir@/recoll .
libdir=$(libdir) python setup.py build
install:
sudo python setup.py install
clean:
rm -rf build
rm -f recoll/__init__.pyc
rm -rf recoll/__pycache__
distclean: clean
rm -f setup.py
+1
View File
@@ -72,6 +72,7 @@ setup (name = 'Recoll',
author_email = 'jfd@recoll.org',
url = 'http://www.recoll.org',
license = 'GPL',
package_dir = {'' : os.path.join(top, 'python', 'recoll')},
long_description = '''
''',
packages = ['recoll'],