-
Notifications
You must be signed in to change notification settings - Fork 184
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
Use case-insensitive comparision for checking dependencies of python packages #7534
Comments
A new Issue was created by @iarspider . @Dr15Jones, @perrotta, @dpiparo, @makortel, @smuzaffar, @qliphy can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
Fix check for requirements (#7534), add missing dependencies
hi, yes you are right but I would suggest to not update build-with-pip.file which will trigger a rebuild of nearly all the cmsdist package. Issue is with cachecontrol itself. Just fix the name for it. e.g. create a file cmsdist/pip/cachecontrol.file with contents %define patchsrc0 sed -i -e 's|name="CacheControl"|name="cachecontrol"|' setup.py
no, this should be done when we create a new arch or update gcc ( as that is going to trigger a rebuild of all packages anyway). |
#7696 now provides hooks which one can use to manipulate the dependencies |
There is a problem with the way cmsdist checks python packages for missing dependencies.
The check is done by first getting package name from output of pip show ( https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_12_3_X/master/build-with-pip.file#L105 ), then looking for that name in output of pip check ( https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_12_3_X/master/build-with-pip.file#L107 ). The problem is in capitalization of PKG_NAME. E.g., for
py3-cachecontrol
, the value ofPKG_NAME
isCacheControl
, but in the output ofpip3 check
the package is namedcachecontrol
(all lowercase), and the following grep ^${PKG_NAME} will not return anythingWe should do a case-insensitive grep for
PKG_NAME
.The text was updated successfully, but these errors were encountered: