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
In trying to build mult-version version of py3-proto-plus I found that it could not be installed along side of py3.12-google-resumable-media, because they both had usr/lib/python3.12/site-packages/testing/constraints-3.10.txt.
So we can see there that some things are providing top level python modules that they surely did not intend to.
I opened googleapis/proto-plus-python#503 , but haven't gotten to the root cause of why those directories are getting pulled in to the installed package. The 'build' directory is output of a previous 'pip build' run, and that can be cleaned out with an 'rm' in the pipeline, but the other directories should not be getting in either.
The text was updated successfully, but these errors were encountered:
git clone https://github.com/googleapis/proto-plus-python.git
cd proto-plus-python
rm -Rf *
git checkout .
sh ../do-build.sh.txt
If I build in a clean repo (rm -Rf *; git checkout .), and include setuptools-scm in the packages list then I get the docs/ and testing/ dirs in the .whl. If I exclude it, then I will not get that.
OK. @pnasrat I'm interested in your thoughts on what we can do here.
It does seem like setuptools_scm is changing the behavior and resulting in the 'docs' and 'testing/' packages getting added.
The 'build/' is easy enough, we can just explicitly clean that dir out in py/pip-build-install, and I've verified that does work, but the non-'build' directories we'll have to handle another way.
In trying to build mult-version version of py3-proto-plus I found that it could not be installed along side of py3.12-google-resumable-media, because they both had
usr/lib/python3.12/site-packages/testing/constraints-3.10.txt
.That didn't seem right.
I used https://gist.github.com/smoser/0a11e2643b884960c1e5349d4dc0b8c7#file-get-archive-info to get .flist files (tar -tvf output) of all the files in the wolfi to see what other packages had that problem.
Using the above awk, here are some interesting bits:
So we can see there that some things are providing top level python modules that they surely did not intend to.
I opened googleapis/proto-plus-python#503 , but haven't gotten to the root cause of why those directories are getting pulled in to the installed package. The 'build' directory is output of a previous 'pip build' run, and that can be cleaned out with an 'rm' in the pipeline, but the other directories should not be getting in either.
The text was updated successfully, but these errors were encountered: