-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generation of conda metapackages robotology-distro and robotology…
…-distro-all for each new distro release (#1030)
- Loading branch information
1 parent
f570ee5
commit 113e1c4
Showing
11 changed files
with
183 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
# This number needs to be increased at each full rebuild, | ||
# to ensure that binaries belonging to different rebuilds | ||
# can be distinguished even if the version number is the same | ||
set(CONDA_BUILD_NUMBER 43) | ||
if(NOT CONDA_BUILD_NUMBER) | ||
set(CONDA_BUILD_NUMBER 43) | ||
endif() | ||
|
||
# This option is enabled only when the metapackages robotology-distro and robotology-distro-all are | ||
# generated, so only in case a robotology-superbuild distro is released | ||
option(CONDA_GENERATE_ROBOTOLOGY_METAPACKAGES "If on, generate recipes for robotology-distro and robotology-distro-all conda metapackages." OFF) | ||
|
||
# This variable is automatically set to contain the robotology-superbuild version in case of releases | ||
if(NOT CONDA_ROBOTOLOGY_SUPERBUILD_VERSION) | ||
set(CONDA_ROBOTOLOGY_SUPERBUILD_VERSION "") | ||
endif() | ||
|
||
# For more conda generation options, check the specific project Build<CMakeProject>.cmake | ||
# file for variables that start with `<CMakeProject>_CONDA` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
conda/metapackages_recipes_template/robotology-distro-all.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package: | ||
name: robotology-distro-all | ||
version: {{ robotology_superbuild_version }} | ||
|
||
build: | ||
number: {{ conda_build_number }} | ||
|
||
requirements: | ||
# We use run as installing robotology-distro-all should install all robotology packages | ||
run: {# List all packages and the version dependency. #} | ||
{% for pkg in robotology_all_packages %} - {{ pkg.name }}={{ pkg.version.replace("v","") }} | ||
{% endfor %} | ||
|
||
about: | ||
home: https://github.com/robotology/robotology-superbuild | ||
|
18 changes: 18 additions & 0 deletions
18
conda/metapackages_recipes_template/robotology-distro.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package: | ||
name: robotology-distro | ||
version: {{ robotology_superbuild_version }} | ||
|
||
build: | ||
number: {{ conda_build_number }} | ||
|
||
requirements: | ||
# We used run_constrained to ensure that a specific version of | ||
# the specified package is used if the package is installed, but | ||
# we do not depend explicitly on the packages | ||
run_constrained: {# List all packages and the version dependency. #} | ||
{% for pkg in robotology_all_packages %} - {{ pkg.name }}={{ pkg.version.replace("v","") }} | ||
{% endfor %} | ||
|
||
about: | ||
home: https://github.com/robotology/robotology-superbuild | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters