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
assertdata_dir=="foo-0.4.2.data"assertpath=="foo-0.4.2-1337.data/some_folder/some_file.txt"assertposixpath.commonprefix([data_dir, path]) =="foo-0.4.2"assertposixpath.commonprefix([data_dir, path]) !=data_dir# -> the scheme is incorrectly determined as root_scheme.
Can the implementation of data_dir be changed to take into account the wheel's build tag?
Environment:
Python 3.9.17
setuptools 67.7.2
installer 0.7.0
The text was updated successfully, but these errors were encountered:
This sounds like exactly the opposite of pypa/setuptools#3997 and is probably a setuptools/wheel bug for generating a non spec-compliant artifact.
but this issue impacts all wheels with a build tag
Presumably it doesn't include any wheels that possess only modules/packages and don't have data files / headers / scripts. So it would impact the minority of wheels, really.
Presumably it doesn't include any wheels that possess only modules/packages and don't have data files / headers / scripts. So it would impact the minority of wheels, really.
Yes you're right, I'll edit the issue description for future readers.
This is related to #171 but this issue impacts all wheels with a build tag and data files.
For example, using the following command to create a wheel for a package named
foo
with version 0.4.2:will create a wheel named
foo-0.4.2-1337-py3-none-any.whl
. Thebuild_tag
in:installer/src/installer/utils.py
Lines 66 to 68 in 444e529
will be
1337
.Data files in the wheel will have paths such as
foo-0.4.2-1337.data/some_folder/some_file.txt
. Due to the implementation ofdata_dir
:installer/src/installer/sources.py
Lines 49 to 52 in 444e529
we'll thus have the following variable values here:
installer/src/installer/_core.py
Line 43 in 444e529
Can the implementation of
data_dir
be changed to take into account the wheel's build tag?Environment:
The text was updated successfully, but these errors were encountered: