setup.py install doesn't work for python-ligo-lw any more
See the following example:
$ # create a virtualenv that picks up the dependencies from the system
$ python -m virtualenv venv --system-site-packages
$ # install python-ligo-lw into it
$ ./venv/bin/python setup.py install
# list files
$ find venv/lib64/python*/site-packages/ligo
venv/lib64/python2.7/site-packages/ligo
venv/lib64/python2.7/site-packages/ligo/__init__.py
venv/lib64/python2.7/site-packages/ligo/lw
venv/lib64/python2.7/site-packages/ligo/lw/_ilwd.so
venv/lib64/python2.7/site-packages/ligo/lw/tokenizer.so
venv/lib64/python2.7/site-packages/ligo/__init__.pyc
This is because the packages
keyword in the call to distutils.setup
is incomplete. Since this package uses the ligo
namespace_package, the correct value for this is
diff --git a/setup.py b/setup.py
index b17897c97b..82c479fa52 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,8 @@ setup(
"ligo",
],
packages = [
- "ligo",
+ "ligo.lw",
+ "ligo.lw.utils",
],
ext_modules = [
Extension(
(as it was before 49a05805) I can post this as a merge request if that would be helpful.
setuptools
also has a helpful find_packages
function that will populate the packages
entry automatically, which might be easier than manually listing things.