Skip to content
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

Python3 spec file #3788

Merged
merged 5 commits into from Mar 2, 2018
Merged

Conversation

davidlange6
Copy link
Contributor

Thanks to @smuzaffar for a working python3 spec.

in addition, we've added a PYTHON27PATH variable to eventually remove our usage of PYTHONPATH (so possible to support python2 and 3 for some period)

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2018

A new Pull Request was created by @davidlange6 (David Lange) for branch IB/CMSSW_10_1_X/gcc630.

@cmsbuild, @smuzaffar, @gudrutis, @mrodozov can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@davidlange6
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/26427/console

@davidlange6
Copy link
Contributor Author

(most of cmssw-tool-conf is rebuild in my area by now-so the test should be ok) - i would propose to merge both sets of python changes before the 2300 tonight

python3.spec Outdated
echo "if 'PYTHON3PATH' in environ:" >> %i/lib/python%{pythonv}/sitecustomize.py
echo " import sys,site" >> %i/lib/python%{pythonv}/sitecustomize.py
echo " for p in environ['PYTHON3PATH'].split(':'):">> %i/lib/python%{pythonv}/sitecustomize.py
echo " site.addsitedir(p)" >> %i/lib/python%{pythonv}/sitecustomize.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we change this logic to something like

from os import environ
if 'PYTHON3PATH' in environ:
  import sys
  sys.path =environ['PYTHON3PATH'].split(':') + sys.path

this way without any changes in SCRAM or buildrules (to dump .pth files) we can just update toolfiles to replace PYTHONPATH with PYTHON3PATH

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2018

Pull request #3788 was updated.

@davidlange6
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/26441/console

@davidlange6 davidlange6 merged commit fee943f into cms-sw:IB/CMSSW_10_1_X/gcc630 Mar 2, 2018
@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2018

-1

Tested at: 6e85532

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3788/26441/summary.html

I found follow errors while testing this PR

Failed tests: Build

  • Build:

I found an error when building:

>> Compiling  /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_1_X_2018-03-01-2300/src/DataFormats/Scalers/src/DcsStatus.cc 
Entering library rule at DataFormats/EcalRawData
>> Building LCG reflex dict from header file src/DataFormats/EcalRawData/src/classes.h
>> Compiling LCG dictionary: tmp/slc6_amd64_gcc630/src/CondFormats/Luminosity/src/CondFormatsLuminosity/a/CondFormatsLuminosity_xr.cc
>> Compiling  tmp/slc6_amd64_gcc630/src/CondFormats/Luminosity/src/CondFormatsLuminosity/a/Serialization.cc 
c++: error: tmp/slc6_amd64_gcc630/src/CondFormats/Luminosity/src/CondFormatsLuminosity/a/Serialization.cc: No such file or directory
c++: fatal error: no input files
compilation terminated.
c++: error: tmp/slc6_amd64_gcc630/src/CondFormats/Luminosity/src/CondFormatsLuminosity/a/Serialization.cc: No such file or directory
c++: fatal error: no input files
compilation terminated.


@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2018

Comparison not run due to Build errors (RelVals and Igprof tests were also skipped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants