Compare commits
4 Commits
packages/v
...
use-uv-in-
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a846631e87 | ||
![]() |
2d40b9e346 | ||
![]() |
423717345b | ||
![]() |
693f5256d7 |
@@ -6,6 +6,17 @@ build:
|
|||||||
- graphviz
|
- graphviz
|
||||||
tools:
|
tools:
|
||||||
python: "3.11"
|
python: "3.11"
|
||||||
|
jobs:
|
||||||
|
create_environment:
|
||||||
|
- asdf plugin add uv
|
||||||
|
- asdf install uv latest
|
||||||
|
- asdf global uv latest
|
||||||
|
- uv venv
|
||||||
|
install:
|
||||||
|
- uv pip install -r lib/spack/docs/requirements.txt
|
||||||
|
build:
|
||||||
|
html:
|
||||||
|
- uv run sphinx-build -T -b html docs $READTHEDOCS_OUTPUT/html
|
||||||
|
|
||||||
sphinx:
|
sphinx:
|
||||||
configuration: lib/spack/docs/conf.py
|
configuration: lib/spack/docs/conf.py
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name="spack"
|
name="spack"
|
||||||
description="The spack package manager"
|
description="The spack package manager"
|
||||||
requires-python=">=3.6"
|
requires-python=">=3.6.2"
|
||||||
dependencies=[
|
dependencies=[
|
||||||
"clingo",
|
"clingo",
|
||||||
"setuptools",
|
"setuptools",
|
||||||
|
@@ -156,13 +156,7 @@ class Vtk(CMakePackage):
|
|||||||
depends_on("libxt", when="^[virtuals=gl] glx platform=linux")
|
depends_on("libxt", when="^[virtuals=gl] glx platform=linux")
|
||||||
|
|
||||||
# VTK will need Qt5OpenGL, and qt needs '-opengl' for that
|
# VTK will need Qt5OpenGL, and qt needs '-opengl' for that
|
||||||
depends_on("qmake", when="@9.1: +qt")
|
depends_on("qt+opengl", when="+qt")
|
||||||
with when("^[virtuals=qmake] qt-base"):
|
|
||||||
depends_on("qt-base+opengl+widgets")
|
|
||||||
depends_on("qt-quick3d")
|
|
||||||
with when("^[virtuals=qmake] qt"):
|
|
||||||
depends_on("qt+opengl")
|
|
||||||
depends_on("qt+opengl", when="@:9.0 +qt")
|
|
||||||
|
|
||||||
depends_on("boost", when="+xdmf")
|
depends_on("boost", when="+xdmf")
|
||||||
depends_on("boost+mpi", when="+xdmf +mpi")
|
depends_on("boost+mpi", when="+xdmf +mpi")
|
||||||
@@ -386,8 +380,8 @@ def cmake_args(self):
|
|||||||
cmake_args.extend(["-DCMAKE_MACOSX_RPATH=ON"])
|
cmake_args.extend(["-DCMAKE_MACOSX_RPATH=ON"])
|
||||||
|
|
||||||
if "+qt" in spec:
|
if "+qt" in spec:
|
||||||
qt_ver = spec["qmake"].version.up_to(1)
|
qt_ver = spec["qt"].version.up_to(1)
|
||||||
qt_bin = spec["qmake"].prefix.bin
|
qt_bin = spec["qt"].prefix.bin
|
||||||
qmake_exe = os.path.join(qt_bin, "qmake")
|
qmake_exe = os.path.join(qt_bin, "qmake")
|
||||||
|
|
||||||
# https://github.com/martijnkoopman/Qt-VTK-viewer/blob/master/doc/Build-VTK.md
|
# https://github.com/martijnkoopman/Qt-VTK-viewer/blob/master/doc/Build-VTK.md
|
||||||
@@ -412,7 +406,7 @@ def cmake_args(self):
|
|||||||
# NOTE: The following definitions are required in order to allow
|
# NOTE: The following definitions are required in order to allow
|
||||||
# VTK to build with qt~webkit versions (see the documentation for
|
# VTK to build with qt~webkit versions (see the documentation for
|
||||||
# more info: http://www.vtk.org/Wiki/VTK/Tutorials/QtSetup).
|
# more info: http://www.vtk.org/Wiki/VTK/Tutorials/QtSetup).
|
||||||
if "~webkit" in spec["qmake"]:
|
if "~webkit" in spec["qt"]:
|
||||||
if spec.satisfies("@:8"):
|
if spec.satisfies("@:8"):
|
||||||
cmake_args.extend(
|
cmake_args.extend(
|
||||||
[
|
[
|
||||||
|
Reference in New Issue
Block a user