Skip to content

MRG: refactoring setup.py to fix sdist etc #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 18, 2015

Conversation

matthew-brett
Copy link
Member

python setup.py sdist was broken, because I wasn't adding some files to the
MANIFEST.in, and because I wasn't correctly using the numpy build_py command.

In other news, it was annoying to have to install sympy etc to run python
setup.py egg_info, which was in turn required when installing via pip - see
gh-320.

Fix both of these by dropping checks for Mayavi and Cython, dropping
nibabel/nisext dependency (by copying code and refactoring), and letting
setuptools take care of dependency checking for missing packages.

I broke setup.py sdist in the Python 3 refactor, because we were
previously using a version of numpy.distutils build_py, and the refactor
reverted (accidentally) to using the default disutils setup.py.

We also forgot to add the new position of the fff files to the
MANIFEST.in, so the sdist archives was broken.
Ship routine to make build_py command.  Working towards allowing
setup.py to run without nibabel.
Let setuptools do dependency checking when packages are not installed,
or they are easy to install.
Using internal copy requires import from the nipy tree, which means that
the needs to be importable when setup.py runs.
@matthew-brett matthew-brett force-pushed the refactor-setup.py branch 2 times, most recently from 7bb2add to 3f71670 Compare October 17, 2015 20:54
Don't preinstall packages, except numpy; let pip install dependencies
for some tests.
Nipy should add these as data in the various setup.py files, but this
does not seem to be working.  Add them explicitly in the MANIFEST.in
Data package message needed nibabel.  Make this optional.
matthew-brett added a commit that referenced this pull request Oct 18, 2015
MRG: refactoring setup.py to fix sdist etc

python setup.py sdist was broken, because I wasn't adding some files to the
MANIFEST.in, and because I wasn't correctly using the numpy build_py command.

In other news, it was annoying to have to install sympy etc to run python
setup.py egg_info, which was in turn required when installing via pip - see
gh-320.

Fix both of these by dropping checks for Mayavi and Cython, dropping
nibabel/nisext dependency (by copying code and refactoring), and letting
setuptools take care of dependency checking for missing packages.
@matthew-brett matthew-brett merged commit 125245e into nipy:master Oct 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant