-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Hello,
I just wanted to report an issue:
Issue description
The title says it all. I have a project folder which contains a Pipfile and a src folder. The content of the src folder should be installed using pipenv install. However, instead of installing my local folder as package "src" it will end up trying to download src-0.0.7 and build a wheel out of it. This should not happen, since I explicitly state that by using the file-keyword. Check the section of my Pipfile below
[packages]
mypackage = {file = "src", editable = true}
In the past, pipenv would install this folder as a package. But now it downloads a package with a corresponding name.
There's a workaround: Inserting a "./" :
[packages]
mypackage = {file = "./src", editable = true}
Expected result
A succesful install of "MyPackage" like in previous versions (2024.0.1 and below) of pipenv.
Actual result
self.distribution.has_ext_modules()
: AttributeError: 'NoneType' object has no attribute 'has_pure_modules'
:
:
: note: This error originates from a subprocess, and is likely not a problem
with pip.
: ERROR: Failed building wheel for src
: ERROR: Could not build wheels for src, which is required to install
pyproject.toml-based projects
ERROR: Couldn't install package: �[1m{}�[0m
Steps to replicate
In this case, you can just follow my description from above to reproduce it. But basically: just create a folder named src, put your package files in it and specify it in the Pipfile accordingly.
Best regards!