Skip to content

should not check for nipy while doing egg_info -- ruins installation through pip when installing both sympy and nipy #320

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

Closed
yarikoptic opened this issue May 16, 2014 · 0 comments

Comments

@yarikoptic
Copy link
Member

need to run, sorry if fixed already in master

Downloading/unpacking sympy (from -r requirements.txt (line 5))
  Downloading sympy-0.7.5.tar.gz (6.0MB): 6.0MB downloaded
  Running setup.py egg_info for package sympy

Downloading/unpacking mdp (from -r requirements.txt (line 6))
  You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files.
  You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files.
  Downloading MDP-3.3.tar.gz (471kB): 471kB downloaded
  Running setup.py egg_info for package mdp

Downloading/unpacking nipy (from -r requirements.txt (line 7))
  Downloading nipy-0.3.0.tar.gz (2.1MB): 2.1MB downloaded
  Running setup.py egg_info for package nipy
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/home/yoh/python-env/bep-releases/build/nipy/setup.py", line 68, in <module>
        package_check('sympy', INFO_VARS['SYMPY_MIN_VERSION'])
      File "/home/yoh/python-env/bep-releases/local/lib/python2.7/site-packages/nisext/sexts.py", line 122, in package_check
        raise RuntimeError(msgs['missing'] % pkg_name)
    RuntimeError: Cannot import package "sympy" - is it installed?
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/home/yoh/python-env/bep-releases/build/nipy/setup.py", line 68, in <module>

    package_check('sympy', INFO_VARS['SYMPY_MIN_VERSION'])

  File "/home/yoh/python-env/bep-releases/local/lib/python2.7/site-packages/nisext/sexts.py", line 122, in package_check

    raise RuntimeError(msgs['missing'] % pkg_name)

RuntimeError: Cannot import package "sympy" - is it installed?
matthew-brett added a commit that referenced this issue 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.
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

No branches or pull requests

1 participant