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

plugins resolved by pip instead of core pytest packages #1652

Closed
asmodehn opened this issue Jun 23, 2016 · 5 comments
Closed

plugins resolved by pip instead of core pytest packages #1652

asmodehn opened this issue Jun 23, 2016 · 5 comments

Comments

@asmodehn
Copy link

asmodehn commented Jun 23, 2016

Firstly I am not sure if this is problem of :

  • pytest & plugins design
  • pip-8.1.2
  • how I use setuptools

But it s quite tricky to figure out what is going wrong, so I though I d post it here first.

Here is the issue :

Installed /home/travis/build/asmodehn/pyros/build/install/lib/python2.7/dist-packages/importlib-1.0.3-py2.7.egg
Searching for pytest-timeout
Reading https://pypi.python.org/simple/pytest-timeout/
Best match: pytest-timeout 1.0.0
Downloading https://pypi.python.org/packages/cf/92/ab29b9baa54d47dfd50e43be35577de9af4e7ebf27d29f546ddeb6c3b6f5/pytest-timeout-1.0.0.tar.gz#md5=f9f162bd079689980b5614673ddfdae4
Processing pytest-timeout-1.0.0.tar.gz
Writing /tmp/easy_install-kn4E4k/pytest-timeout-1.0.0/setup.cfg
Running pytest-timeout-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kn4E4k/pytest-timeout-1.0.0/egg-dist-tmp-wIPOxa
zip_safe flag not set; analyzing archive contents...
Moving pytest_timeout-1.0.0-py2.7.egg to /home/travis/build/asmodehn/pyros/build/install/lib/python2.7/dist-packages
Adding pytest-timeout 1.0.0 to easy-install.pth file
Installed /home/travis/build/asmodehn/pyros/build/install/lib/python2.7/dist-packages/pytest_timeout-1.0.0-py2.7.egg

Searching for pytest
Best match: pytest timeout-1.0.0
Downloading https://pypi.python.org/packages/cf/92/ab29b9baa54d47dfd50e43be35577de9af4e7ebf27d29f546ddeb6c3b6f5/pytest-timeout-1.0.0.tar.gz#md5=f9f162bd079689980b5614673ddfdae4
Processing pytest-timeout-1.0.0.tar.gz
Writing /tmp/easy_install-D8H9iA/pytest-timeout-1.0.0/setup.cfg
Running pytest-timeout-1.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-D8H9iA/pytest-timeout-1.0.0/egg-dist-tmp-BPZAJW
zip_safe flag not set; analyzing archive contents...
Removing /home/travis/build/asmodehn/pyros/build/install/lib/python2.7/dist-packages/pytest_timeout-1.0.0-py2.7.egg
Moving pytest_timeout-1.0.0-py2.7.egg to /home/travis/build/asmodehn/pyros/build/install/lib/python2.7/dist-packages
pytest-timeout 1.0.0 is already the active version in easy-install.pth
Installed /home/travis/build/asmodehn/pyros/build/install/lib/python2.7/dist-packages/pytest_timeout-1.0.0-py2.7.egg

error: The 'pytest' distribution was not found and is required by pyzmp

The full log is available at : https://travis-ci.org/asmodehn/pyros/jobs/139666793

This is probably reproducible by running :

python setup.py build --build-base ./build install --install-layout=deb --prefix=./build/install --install-scripts=./build/install/bin

with this package pyros-dev/pyros@2baf3fd, that uses this package https://github.com/asmodehn/pyzmp/releases/tag/0.0.10 that itself has pytest and pytest-timeout as a dependency.

Workaround
It seems I need to always list pytest after all pytest plugin packages in the dependency list. This triggers the pytest installation first...

@asmodehn
Copy link
Author

Note this uses a virtualenv and works : https://travis-ci.org/asmodehn/pyros/jobs/139666794
It seems the problem appears only when we are using system + PYTHONPATH setup instead of virtualenv...

@asmodehn
Copy link
Author

This confirms the workaround works : https://travis-ci.org/asmodehn/pyros/builds/139680687

@RonnyPfannschmidt
Copy link
Member

This is a setuptools usage misstake

@RonnyPfannschmidt
Copy link
Member

@asmodehn any updates on this, it still looks to me unrelated to pytest and i'd like to close the issue

@asmodehn
Copy link
Author

I dont have anything more to report.

I fixed it for me, so feel free to close this, it s probably not a pytest
issue anyway.

But I find it strange that the order of dependencies in setup.py would
matter...

Sadly, I also dont have enough time and setuptools experience to
investigate that issue.
On Jun 27, 2016 6:43 PM, "Ronny Pfannschmidt" [email protected]
wrote:

@asmodehn https://github.com/asmodehn any updates on this, it still
looks to me unrelated to pytest and i'd like to close the issue


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1652 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AANgSHgOoXibVedIcOy6UPI7zQk6KlWEks5qP5s7gaJpZM4I8fbL
.

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