Closed bdorney closed 5 years ago
@jsturdy correctly pointed out that it is this file that is referenced:
What is the specific reason for the restriction on tabulate
@lmoureaux
What is the specific reason for the restriction on tabulate @lmoureaux
Support both Python 2.6 and 2.7 with the same rpm
(see the restrictions in requirements.txt
).
Support both Python 2.6 and 2.7 with the same rpm (see the restrictions in requirements.txt).
This is poor reasoning, as it specifically breaks the rpm installation on a machine that does not need this restriction. Case and point, the working machine gem904qc8daq
.
Yes, the proper solution will be to figure out how to specify the correct requirement in the bdist_rpm
section based on the python
version, or somehow parse it from the requirements file.
When @lmoureaux initially added this dependency, I didn't quickly see any clean way to make it work so didn't bother with it, but just rebuilt RPMs for cc7
machines based on the tabulate
version I was able to download, and turn into an RPM (some earlier versions of tabulate
weren't building an RPM due to packaging I think)
Just checked the requires
syntax didn't allow complex dependencies before rpm 4.13 (have to support 4.8).
Alternatively dropping support for python 2.6
would be equally advantageous; there is only one machine at CERN which is still slc6
(native py2.6) and it is in 904, not running any test stands...
Closing as irrelevant, with the move from slc6
to cc7
python2.6
is no longer used.
Brief summary of issue
The rpm of
gemplotting
seems to be restricting the tabulate requirement for python 2.7 which should not occur.Types of issue
Expected Behavior
When built with python 2.7.5 I would have expected the upper limit of
tabulate
inhttps://github.com/cms-gem-daq-project/gem-plotting-tools/blob/7e938ab763bc4a4e38183a9cbf1e9e4a55ba3918/requirements.txt#L8-L11
To be ignored, e.g. line 11 should be used.
Current Behavior
Package was built on
gem904qc8daq
outside of avirtualenv
which has correct version of python:So based on this I would expect the upper limit on tabulate is ignored:
https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/7e938ab763bc4a4e38183a9cbf1e9e4a55ba3918/requirements.txt#L8-L11
However when trying to install it:
The machine being installed on is
cc7
withpython2.7.5
.Is there an actual reason for restricting the upper limit on tabulate here? The version of
gem904qc8daq
is:But this of course uses python 2.7.5
Steps to Reproduce (for bugs)
gemplotting
from 7e938ab on acc7
python 2.7.5 machinePossible Solution (for bugs)
Drop support for python2.6 (I think only
gem904daq03
is using it...?) and remove line 10 of:https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/7e938ab763bc4a4e38183a9cbf1e9e4a55ba3918/requirements.txt#L8-L11
Context (for feature requests)
Fails to install.
Your Environment
zsh
andbash