-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
BuildError module not found 'pbr' (editable install of project itself, pdm 1.8.0) #601
Comments
Same result with EDIT: I did not reinstall packages. It actually works with that feature disabled, sorry. |
Hmm, do you have a |
No I don't. Isn't PDM generating one on-the-fly for the editable install? |
Here are the contents of the intermediary # -*- coding: utf-8 -*-
from setuptools import setup
import codecs
with codecs.open('README.md', encoding="utf-8") as fp:
long_description = fp.read()
INSTALL_REQUIRES = [
'ansimarkup~=1.4',
'jinja2>=2.11, <4',
"ptyprocess~=0.6; sys_platform != 'win32'",
]
ENTRY_POINTS = {
'console_scripts': [
'failprint = failprint.cli:main',
],
}
setup_kwargs = {
'name': 'failprint',
'version': '0.8.0+d20210817',
'description': 'Run a command, print its output only if it fails.',
'long_description': long_description,
'license': 'UNKNOWN',
'author': '',
'author_email': 'Timothée Mazzucotelli <pawamoy@pm.me>',
'maintainer': None,
'maintainer_email': None,
'url': '',
'packages': [
'failprint',
],
'package_dir': {'': 'src'},
'package_data': {'': ['*']},
'long_description_content_type': 'text/markdown',
'keywords': ['cli', 'failure', 'output', 'runner'],
'classifiers': [
'Development Status :: 4 - Beta',
'License :: Other/Proprietary License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
'install_requires': INSTALL_REQUIRES,
'python_requires': '>=3.6',
'entry_points': ENTRY_POINTS,
}
setup(**setup_kwargs) |
Can't reproduce on my side, it seems |
Indeed. % python3.9 -m pip uninstall -y pbr # removing it from __pypackages__
Found existing installation: pbr 5.6.0
Uninstalling pbr-5.6.0:
Successfully uninstalled pbr-5.6.0
% pdm install -v --prod
All packages are synced to date, nothing to do.
Installing the project as an editable package...
Preparing isolated env for PEP 517 build...
Collecting setuptools
Using cached setuptools-57.4.0-py3-none-any.whl (819 kB)
Installing collected packages: setuptools
Successfully installed setuptools-57.4.0
running develop
running egg_info
writing src/failprint.egg-info/PKG-INFO
writing dependency_links to src/failprint.egg-info/dependency_links.txt
writing entry points to src/failprint.egg-info/entry_points.txt
writing requirements to src/failprint.egg-info/requires.txt
writing top-level names to src/failprint.egg-info/top_level.txt
reading manifest file 'src/failprint.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'src/failprint.egg-info/SOURCES.txt'
running build_ext
Creating /media/data/dev/python/failprint/__pypackages__/3.9/lib/failprint.egg-link (link to src)
Adding failprint 0.8.0+d20210817 to easy-install.pth file
Installing failprint script to /media/data/dev/python/failprint/__pypackages__/3.9/bin
Installed /media/data/dev/python/failprint/src
Install failprint 0.8.0+d20210817 successful
🎉 All complete! |
Yeah, i had |
So, I guess the |
Hmmm OK no, it only adds the parent directories of the cached packages to sys.path. |
There's this line in
|
Yeah I found other references to |
It works if I replace |
Hm, i reproduced it. The real issue is the editable build shouldn't see the dependencies under |
And it sees these dependencies because of the shell-enabled PEP 582 PYTHONPATH? |
The package's path must be present in |
Thanks 🙂 |
Steps to reproduce
Logs:
pyproject.toml:
Actual behavior
The installation of the project itself in editable mode seems to fail. Apparently it misses a
pbr
module/package. Same result with higher Python versions.Note that I have enabled the
feature.install_cache
option. I also tried installingpbr
in the environments of the different Python interpreters I'm using, without success.Expected behavior
No errors 😊
Environment Information
The text was updated successfully, but these errors were encountered: