@@ -121,10 +121,10 @@ log = logging.getLogger()
121121
122122log .info ("Running %s" % " " .join (sys .argv ))
123123
124- if sys .version_info >= (3 , 10 ):
125- print ("""\n Can not install Firedrake with Python 3.10 at the moment:
126- Some wheels are not yet available for Python 3.10 for some required package(s).
127- Please install with Python 3.9 (or an earlier version >= 3.6).""" )
124+ if sys .version_info >= (3 , 11 ):
125+ print ("""\n Can not install Firedrake with Python 3.11 at the moment:
126+ Some wheels are not yet available for Python 3.11 for some required package(s).
127+ Please install with Python 3.10 (or an earlier version >= 3.6).""" )
128128 sys .exit (1 )
129129elif sys .version_info < (3 , 6 ):
130130 if mode == "install" :
@@ -1616,20 +1616,25 @@ if mode == "install":
16161616 log .info ("Pip installing %s to venv" % package )
16171617 run_pip_install (package .split ())
16181618
1619- # Temporary workaround for missing VTK wheel on Python 3.9
1620- if sys .version_info [:2 ] == (3 , 9 ):
1621- source = "https://github.com/firedrakeproject/VTKPythonPackage/releases/download/firedrake_20210113 /"
1619+ # " Temporary" workaround for missing VTK wheel on Python 3.10
1620+ if sys .version_info [:2 ] == (3 , 10 ):
1621+ source = "https://github.com/firedrakeproject/VTKPythonPackage/releases/download/firedrake_20220106 /"
16221622 if osname == "Darwin" :
16231623 if arch == "arm64" :
1624- source += "vtk-9.0.1-cp39-cp39 -macosx_11_0_arm64.whl"
1624+ source += "vtk-9.1.0.dev0-cp310-cp310 -macosx_11_0_arm64.whl"
16251625 elif arch == "x86_64" :
1626- source += "vtk-9.0.1-cp39-cp39-macosx_10_14_x86_64 .whl"
1626+ source += "vtk-9.1.0.dev0-cp310-cp310-macosx_10_15_x86_64 .whl"
16271627 else :
1628- log .error ("unknown Darwin architecture {0}." .format (arch ))
1628+ log .error ("Cannot install VTK for Python 3.10: unknown Darwin architecture {0}." .format (arch ))
1629+ raise InstallError ("Cannot install VTK for Python 3.10: unknown Darwin architecture {0}." .format (arch ))
16291630 elif osname == "Linux" :
1630- source += "vtk-9.0.1-cp39-cp39-linux_x86_64.whl"
1631- log .info ("Pip installing VTK for Python 3.9 to venv" )
1631+ source += "vtk-9.1.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
1632+ else :
1633+ log .error ("Cannot install VTK for Python 3.10: unknown operating system {0}." .format (osname ))
1634+ raise InstallError ("Cannot install VTK for Python 3.10: unknown operating system {0}." .format (osname ))
1635+ log .info ("Pip installing VTK for Python 3.10 to venv" )
16321636 run_pip_install ([source ])
1637+ if sys .version_info [:2 ] >= (3 , 9 ):
16331638 # Also lazy-object-proxy
16341639 run_pip (["install" , "lazy-object-proxy==1.4.*" ])
16351640
0 commit comments