[Distutils] Buoldout2 e setup.py: install_requires ignored
Alessandro Dentella
sandro at e-den.it
Tue Sep 13 16:07:10 EDT 2016
Hi,
I just migrated from buildout 1.7 to buildout 2.5. In this migration I
stopped using a recipe that created a virtualenv as a part of
buildout and I now use an external (basic) virtualenv to calll
bootrap, so I can't compare the two configuration in a strict way.
My problem is that now it seems that install_requires declared in
setup.py are simply ignored, while all packages declared in the eggs
directory are used/installed along with all the packages they depends
on.
I can't find what's wrong with my configuration, I report below a
minimal setup that shows the problem.
thanks in advance for any hints
sandro
*:-)
sandro at bluff:/tmp/new$ cat buildout.cfg
[buildout]
parts = django
eggs = django
ipython
django_extensions
project-name = mytest
[django]
recipe = djangorecipe
settings = settings
eggs = ${buildout:eggs}
----------------------------------------------------
sandro at bluff:/tmp/new$ cat setup.py
from setuptools import setup, find_packages
setup(
name = "example with buildout2",
version = "0.1",
author = "Sandro",
author_email = "sandro at e-den.it",
description = ("Sperem ghe la vaga ben"),
license = "BSD",
url = "http://hg.trepalchi.it/",
#packages=['an_example_pypi_project', 'tests'],
long_description="Bla bla",
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: BSD License",
],
install_requires=[
'pyquery',
]
)
The steps I do::
mkvirtualenv -p /usr/bin/python3 base3
/home/sandro/.virtualenvs/base3/bin/python3 bootstrap.py
./bin/buildout
And I obtain bin/django where pyquery **is missing**
$ cat bin/django
#!/home/sandro/.virtualenvs/base3/bin/python3
import sys
sys.path[0:0] = [
'/home/sandro/.buildout/eggs/Django-1.10.1-py3.5.egg',
'/home/sandro/.buildout/eggs/ipython-5.0.0-py3.5.egg',
'/home/sandro/.buildout/eggs/djangorecipe-2.2.1-py3.5.egg',
'/home/sandro/.buildout/eggs/zc.recipe.egg-2.0.3-py3.5.egg',
'/home/sandro/.buildout/eggs/zc.buildout-2.5.3-py3.5.egg',
'/home/sandro/.buildout/eggs/pexpect-4.2.1-py3.5.egg',
'/home/sandro/.buildout/eggs/Pygments-2.1.3-py3.5.egg',
'/home/sandro/.buildout/eggs/prompt_toolkit-1.0.7-py3.5.egg',
'/home/sandro/.buildout/eggs/traitlets-4.2.2-py3.5.egg',
'/home/sandro/.buildout/eggs/simplegeneric-0.8.1-py3.5.egg',
'/home/sandro/.buildout/eggs/pickleshare-0.7.4-py3.5.egg',
'/home/sandro/.buildout/eggs/decorator-4.0.10-py3.5.egg',
'/home/sandro/.buildout/eggs/setuptools-27.1.2-py3.5.egg',
'/home/sandro/.buildout/eggs/ptyprocess-0.5.1-py3.5.egg',
'/home/sandro/.buildout/eggs/wcwidth-0.1.7-py3.5.egg',
'/home/sandro/.buildout/eggs/six-1.10.0-py3.5.egg',
'/home/sandro/.buildout/eggs/ipython_genutils-0.1.0-py3.5.egg',
'/tmp/new',
]
import djangorecipe.binscripts
if __name__ == '__main__':
sys.exit(djangorecipe.binscripts.manage('project.settings'))
--
Sandro Dentella *:-)
http://trepalchi.it Il portale degli artisti
http://www.reteisi.org Soluzioni libere per le scuole
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy
More information about the Distutils-SIG
mailing list