Skip to content
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

Unable to install on Python 2.7 #37

Closed
rparini opened this issue Apr 11, 2018 · 4 comments
Closed

Unable to install on Python 2.7 #37

rparini opened this issue Apr 11, 2018 · 4 comments

Comments

@rparini
Copy link
Contributor

rparini commented Apr 11, 2018

I can't get numdifftools to install with python 2.7. I resolved the error

RuntimeError: Due to a bug in setuptools, PyScaffold currently needs at least Python 3.4! Install PyScaffold 2.5 for Python 2.7 support.

by changing in setup.py

setup(setup_requires=['pyscaffold>=3.0a0,<3.1a0'] + sphinx,

to

setup(setup_requires=['pyscaffold==2.5.10'] + sphinx,

(2.5.10 is needed to work with setuptools version >= 39 due to pyscaffold/pyscaffold#148). But I then get the error

error: 'egg_base' must be a directory name (got `src`)

which is the setuptools bug that the PyScaffold docs say you need to use PyScaffold 2.5 to avoid. It might be that the project needs to be set up with PyScaffold 2.5 in the first place as well as installed with it. When I go back to the commit 406a798 (just before numdifftools was updated with PyScaffold 3) then I can get it to install on python 2.7 if I downgrade setuptools to < 39.

@pbrod
Copy link
Owner

pbrod commented Jun 3, 2018

Thanks for reporting. I will look at it soon.

@pbrod
Copy link
Owner

pbrod commented Jun 6, 2018

Ok. I have reset the setup.py to

setup(setup_requires=['pyscaffold==2.5.11'] + sphinx,

Then it works for python version 3.4, 3.5 and 3.6, but not 2.7. It seems to me that this is actually a bug in setuptools: pypa/setuptools#1136.

pbrod added a commit that referenced this issue Jun 8, 2018
pbrod added a commit that referenced this issue Jun 8, 2018
@pbrod
Copy link
Owner

pbrod commented Jun 8, 2018

Setting setup.py to

setup(setup_requires=['pyscaffold==2.5.11'] + sphinx,
       package_dir = {'': 'src'},
       packages=find_packages(where=r'./src'),...

seems to be a workable solution in commit 7db83c8.

Therfore I am closing the issue.

@pbrod pbrod closed this as completed Jun 8, 2018
@rparini
Copy link
Contributor Author

rparini commented Jun 29, 2018

Yes, this works for me now, thank you.

rparini added a commit to rparini/cxroots that referenced this issue Jul 27, 2018
numdifftools should now use pyscaffold==2.5.11 see pbrod/numdifftools#37
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

2 participants