You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a couple of problems with this approach:
Violation of PEP 517: When using the --use-pep517 flag with pip (which will become the default behavior in the future), or when using other PEP 517-compliant build tools, the installation process fails with a ModuleNotFoundError: No module named 'pip' error. This is because pip is not guaranteed to be available during the installation process when PEP 517 is used.
Assumption of pip availability: Even without using PEP 517, the assumption that pip is installed and available during the package installation process is incorrect. Some package managers or environments may not include pip by default, leading to the same ModuleNotFoundError.
Steps to reproduce
Create a new virtual environment and install chumpy using pip with the --use-pep517 flag:
The installation will fail with the following error:
Traceback (most recent call last):
File "<string>", line 9, in <module>
ModuleNotFoundError: No module named 'pip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
...
File "<string>", line 11, in <module>
ModuleNotFoundError: No module named 'pip'
The text was updated successfully, but these errors were encountered:
Issue Description
The
chumpy
package'ssetup.py
file currently attempts to importpip
during the installation process, as shown in the following lines:There are a couple of problems with this approach:
--use-pep517
flag withpip
(which will become the default behavior in the future), or when using other PEP 517-compliant build tools, the installation process fails with a ModuleNotFoundError: No module named 'pip' error. This is because pip is not guaranteed to be available during the installation process when PEP 517 is used.pip
availability: Even without using PEP 517, the assumption thatpip
is installed and available during the package installation process is incorrect. Some package managers or environments may not includepip
by default, leading to the sameModuleNotFoundError
.Steps to reproduce
chumpy
usingpip
with the--use-pep517
flag:python -m venv myenv source myenv/bin/activate pip install chumpy --use-pep517
The text was updated successfully, but these errors were encountered: