python3Packages.{coal,pinocchio,example-robot-data,ndcurves,tsid,crocoddyl,aligator,mim-solvers}: allow to opt-out of standalone setup (#457543)
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
python,
|
||||
matplotlib,
|
||||
pytest,
|
||||
|
||||
buildStandalone ? true,
|
||||
}:
|
||||
toPythonModule (
|
||||
aligator.overrideAttrs (super: {
|
||||
@@ -19,7 +21,7 @@ toPythonModule (
|
||||
|
||||
cmakeFlags = super.cmakeFlags ++ [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
|
||||
];
|
||||
|
||||
# this is used by CMake at configure/build time
|
||||
@@ -27,11 +29,12 @@ toPythonModule (
|
||||
python
|
||||
];
|
||||
|
||||
propagatedBuildInputs = super.propagatedBuildInputs ++ [
|
||||
aligator
|
||||
propagatedBuildInputs = [
|
||||
crocoddyl
|
||||
pinocchio
|
||||
];
|
||||
]
|
||||
++ super.propagatedBuildInputs
|
||||
++ lib.optional buildStandalone aligator;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pythonImportsCheckHook
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
eigenpy,
|
||||
pylatexenc,
|
||||
numpy,
|
||||
|
||||
buildStandalone ? true,
|
||||
}:
|
||||
toPythonModule (
|
||||
coal.overrideAttrs (super: {
|
||||
@@ -17,7 +19,7 @@ toPythonModule (
|
||||
|
||||
cmakeFlags = super.cmakeFlags ++ [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
|
||||
];
|
||||
|
||||
# those are used by CMake at configure/build time
|
||||
@@ -26,11 +28,12 @@ toPythonModule (
|
||||
pylatexenc
|
||||
];
|
||||
|
||||
propagatedBuildInputs = super.propagatedBuildInputs ++ [
|
||||
propagatedBuildInputs = [
|
||||
boost
|
||||
coal
|
||||
eigenpy
|
||||
];
|
||||
]
|
||||
++ super.propagatedBuildInputs
|
||||
++ lib.optional buildStandalone coal;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pythonImportsCheckHook
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
ipykernel,
|
||||
python,
|
||||
scipy,
|
||||
|
||||
buildStandalone ? true,
|
||||
}:
|
||||
toPythonModule (
|
||||
crocoddyl.overrideAttrs (super: {
|
||||
@@ -21,7 +23,7 @@ toPythonModule (
|
||||
|
||||
cmakeFlags = super.cmakeFlags ++ [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
|
||||
];
|
||||
|
||||
# those are used by CMake at configure/build time
|
||||
@@ -29,10 +31,11 @@ toPythonModule (
|
||||
python
|
||||
];
|
||||
|
||||
propagatedBuildInputs = super.propagatedBuildInputs ++ [
|
||||
crocoddyl
|
||||
propagatedBuildInputs = [
|
||||
example-robot-data
|
||||
];
|
||||
]
|
||||
++ super.propagatedBuildInputs
|
||||
++ lib.optional buildStandalone crocoddyl;
|
||||
|
||||
nativeCheckInputs = [
|
||||
ffmpeg
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
python,
|
||||
pinocchio,
|
||||
|
||||
buildStandalone ? true,
|
||||
}:
|
||||
toPythonModule (
|
||||
example-robot-data.overrideAttrs (super: {
|
||||
@@ -15,17 +17,18 @@ toPythonModule (
|
||||
|
||||
cmakeFlags = super.cmakeFlags ++ [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
|
||||
];
|
||||
|
||||
nativeBuildInputs = super.nativeBuildInputs ++ [
|
||||
python
|
||||
];
|
||||
|
||||
propagatedBuildInputs = super.propagatedBuildInputs ++ [
|
||||
example-robot-data
|
||||
propagatedBuildInputs = [
|
||||
pinocchio
|
||||
];
|
||||
]
|
||||
++ super.propagatedBuildInputs
|
||||
++ lib.optional buildStandalone example-robot-data;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pythonImportsCheckHook
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
|
||||
# nativeCheckInputs
|
||||
pytest,
|
||||
|
||||
buildStandalone ? true,
|
||||
}:
|
||||
toPythonModule (
|
||||
mim-solvers.overrideAttrs (super: {
|
||||
@@ -26,7 +28,7 @@ toPythonModule (
|
||||
|
||||
cmakeFlags = super.cmakeFlags ++ [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
|
||||
];
|
||||
|
||||
# this is used by CMake at configure/build time
|
||||
@@ -38,12 +40,12 @@ toPythonModule (
|
||||
boost
|
||||
crocoddyl
|
||||
eigenpy
|
||||
mim-solvers
|
||||
osqp
|
||||
proxsuite
|
||||
scipy
|
||||
]
|
||||
++ super.propagatedBuildInputs;
|
||||
++ super.propagatedBuildInputs
|
||||
++ lib.optional buildStandalone mim-solvers;
|
||||
|
||||
nativeCheckInputs = super.nativeCheckInputs ++ [
|
||||
pythonImportsCheckHook
|
||||
|
||||
@@ -9,13 +9,15 @@
|
||||
boost,
|
||||
pinocchio,
|
||||
python,
|
||||
|
||||
buildStandalone ? true,
|
||||
}:
|
||||
toPythonModule (
|
||||
ndcurves.overrideAttrs (super: {
|
||||
pname = "py-${super.pname}";
|
||||
cmakeFlags = super.cmakeFlags ++ [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
|
||||
];
|
||||
# those are used by CMake at configure/build time
|
||||
nativeBuildInputs = super.nativeBuildInputs ++ [
|
||||
@@ -24,12 +26,14 @@ toPythonModule (
|
||||
propagatedBuildInputs = [
|
||||
boost
|
||||
pinocchio
|
||||
ndcurves
|
||||
]
|
||||
++ super.propagatedBuildInputs;
|
||||
++ super.propagatedBuildInputs
|
||||
++ lib.optional buildStandalone ndcurves;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pythonImportsCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ndcurves"
|
||||
];
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
casadi,
|
||||
matplotlib,
|
||||
python,
|
||||
|
||||
buildStandalone ? true,
|
||||
}:
|
||||
toPythonModule (
|
||||
pinocchio.overrideAttrs (super: {
|
||||
@@ -17,18 +19,19 @@ toPythonModule (
|
||||
|
||||
cmakeFlags = super.cmakeFlags ++ [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
|
||||
];
|
||||
|
||||
nativeBuildInputs = super.nativeBuildInputs ++ [
|
||||
python
|
||||
];
|
||||
|
||||
propagatedBuildInputs = super.propagatedBuildInputs ++ [
|
||||
propagatedBuildInputs = [
|
||||
casadi
|
||||
coal
|
||||
pinocchio
|
||||
];
|
||||
]
|
||||
++ super.propagatedBuildInputs
|
||||
++ lib.optional buildStandalone pinocchio;
|
||||
|
||||
checkInputs = super.checkInputs ++ [
|
||||
matplotlib
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
pinocchio,
|
||||
python,
|
||||
|
||||
buildStandalone ? true,
|
||||
}:
|
||||
toPythonModule (
|
||||
tsid.overrideAttrs (super: {
|
||||
@@ -15,7 +17,7 @@ toPythonModule (
|
||||
|
||||
cmakeFlags = super.cmakeFlags ++ [
|
||||
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" true)
|
||||
(lib.cmakeBool "BUILD_STANDALONE_PYTHON_INTERFACE" buildStandalone)
|
||||
];
|
||||
|
||||
# those are used by CMake at configure/build time
|
||||
@@ -23,10 +25,11 @@ toPythonModule (
|
||||
python
|
||||
];
|
||||
|
||||
propagatedBuildInputs = super.propagatedBuildInputs ++ [
|
||||
propagatedBuildInputs = [
|
||||
pinocchio
|
||||
tsid
|
||||
];
|
||||
]
|
||||
++ super.propagatedBuildInputs
|
||||
++ lib.optional buildStandalone tsid;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pythonImportsCheckHook
|
||||
|
||||
Reference in New Issue
Block a user