ParaView and Catalyst use python3.#11485
Conversation
|
@chuckatkins Please review. |
|
It would be preferable if we could support both Python 2 and Python 3. Especially since older versions of these packages seem to only support Python 2? |
|
@adamjstewart this is part of paraview's transition path to dropping python2 support entirely. Kitware is essentially asserting that python2 is being deprecated in paraview and vtk and as part of that, the spack package will only be supporting python3 moving forward. |
|
@chuckatkins what I'm trying to say is that if the current version of these packages only support Python 3, that's fine. But what about all the older versions? I think it should look something like: depends_on('python')
depends_on('python@3:', when='@5.6:')
depends_on('python@:2', when='@:5.5') |
|
@adamjstewart That's fair. @danlipsa it should probably be something like this then: extends('python', when='+python')
depends_on('python@3:', when='@5.6: +python', type=('build', 'link', 'run'))
depends_on('[email protected]:2.8', when='@:5.5.2 +python', type=('build', 'link', 'run'))The |
|
@chuckatkins Sounds good. |
|
@chuckatkins @adamjstewart Please review. |
|
@chuckatkins Should we merge this? At least [email protected] and paraview@develop work. Right now in the develop branch no version works because they all use python2. |
|
Why switch to the vendored |
|
@chuckatkins I rebase on develop and that error went away - so I removed the internal libtiff. |
|
@danlipsa @chuckatkins, I know you're not asking me but I would be opposed to merging this PR, as it stands, on the basis that it alienates all PV versions less than 5.6.0 when the spec includes
into these two lines:
it would permit versions between 5.3 and 5.5 inclusive to be built with any python version (v3 will be required if |
|
@DarylGrunau I believe #11553 will fix some of these issues so that |
|
@chuckatkins Not sure what's wrong with travis - this works on my machine. Any ideas? |
|
@chuckatkins Should we merge this? |
|
Thanks for all the work on this! |
Workaround for
adding the following to your packages.yaml
packages:
python:
version: [3, 2]
without this you'll get:
paraview requires python version 3:, but spec asked for 2.7.16
for `spack spec paraview+python`
see spack pull request spack#11539
|
@chuckatkins I pushed the workaround. Is this ready? |
|
@danlipsa |
chuckatkins
left a comment
There was a problem hiding this comment.
Needs to add:
if '+python' in spec or '+python3' in spec:In both packages configure args then I think we should should be good to go finally.
Good catch. I'll do that. |
|
@danlipsa looks like travis wasn't reporting. See https://travis-ci.org/spack/spack/jobs/543763846 to fix the flake 8 error. Then I'll merge this once it passes. |
|
@chuckatkins What about now? |
|
Rather than open an issue for this, I just realized that |
|
So close... So close... |
|
@jrood-nrel Thanks for the report. I'll push a fix shortly. |
|
See #11707 for a fix. |
Use python3 for latest paraview and catalyst versions.
Use python3 for latest paraview and catalyst versions.
No description provided.