egg install not install pytest.py file
See original GitHub issueHi, new version 3.9.1 not install pytest.py file when egg install from setuptools tests_require parameter is used.
I have this argument in setup.py setup function:
tests_require=['pytest'],
Then when i run python3 setup.py test and no pytest is installed in system yet, then setuptools install all packages, and it’s dependencies to .egg directory. So:
~$ ls .eggs/pytest-3.9.1-py3.5.egg/
EGG-INFO _pytest
~$ ls .eggs/pytest-3.8.2-py3.5.egg/
EGG-INFO __pycache__ _pytest pytest.py
Somewhere in my test setup class i import pytest, which not exist now. When pytest is installed via pip3, pytest.py exist in filesystem, for example at /usr/local/lib/python3.5/dist-packages/pytest.py.
Here is my pip3 list
Click (7.0)
extendparser (0.2.0)
Flask (1.0.2)
gevent (1.3.7)
greenlet (0.4.15)
itsdangerous (0.24)
Jinja2 (2.10)
Jinja2-template-info (0.1.1)
jsonschema (2.6.0)
lazy-object-proxy (1.3.1)
MarkupSafe (1.0)
openapi-core (0.6.0)
openapi-spec-validator (0.2.4)
pip (9.0.1)
prometheus-client (0.4.2)
PyYAML (3.13)
setuptools (33.1.1)
six (1.11.0)
uWSGI (2.0.17.1)
Werkzeug (0.14.1)
wheel (0.29.0)
I use that on updated debian stretch docker image with python3 3.5.3-1 package.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
stopping setup.py from installing as egg - Stack Overflow
egg file : Just use pip! If you have a directory containing a setup.py script you can run the following command in that...
Read more >EGG file installation - Python package - Dataiku Community
Hi All, I have a python package in form of an .egg file and wanted to understand the steps to use it as...
Read more >Easy Install - setuptools 65.6.3.post20221220 documentation
egg file (Python Egg). Example 1. Install a package by name, searching PyPI for the latest version, and automatically downloading, building, and installing...
Read more >Getting Started With setuptools and setup.py - PythonHosted.org
This tutorial will focus on the bare minimum basics you need to get setuptools running so you can: Register your package on pypi....
Read more >Python: Creating a pip installable package
It is the most common way to install Python packages. ... (despite the extension, this is generated even though you have not built...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, updating setuptools solve my problem. Thank’s a lot!
https://setuptools.readthedocs.io/en/latest/history.html#v34-4-0
so we either move py_modules back or go for a more recent version, my current preference would be to go for a more recent version - perhaps as recent as 40.x
i’d like to hear other opinions/preferences as well