Closed ianozsvald closed 9 years ago
Awesome, thanks for pointing this out. I'll update the setup.py.
Fixed! Thanks
I did the following command: apt-get -yqqf install python-setuptools && easy_install pip && pip install --upgrade pip setuptools
And I got this output:
Running pip-9.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dzZuxn/pip-9.0.1/egg-dist-tmp-H5oyYo
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Using a fresh clone of
pyxley
today in Python 2.7 (using a freshly-updated Anaconda Python 2.7 environment) I see a problem withsetup.py
:This leads to the following
pyreact
error:Swapping line 1 of
setup.py
fromdistutils
tosetuptools
solves the issue:and after a fresh install with
python setup.py install
the demo runs.My knowledge of Python packaging is a bit patchy but I'm pretty sure
setuptools
is the normal way (nowadays, after all the other "normal ways" we've had along the way): https://docs.python.org/3/library/distutils.html "Most Python users will not want to use this module directly, but instead use the cross-version tools maintained by the Python Packaging Authority. In particular, setuptools is an enhanced alternative to distutils that provides: ... The recommended pip installer runs all setup.py scripts with setuptools, even if the script itself only imports distutils. Refer to the Python Packaging User Guide for more information."For reference these are my versions:
This explains+fixes the manual install in my other bug report https://github.com/stitchfix/pyxley/issues/5