You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/maintainer/adding_pkgs.rst
+47-5Lines changed: 47 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -638,17 +638,59 @@ go to the root repository directory and run the
638
638
``.scripts/run_docker_build.sh`` script. This requires that you have docker
639
639
installed on your machine.
640
640
641
-
You need to define an environment variable named ``CONFIG``. Its value must be
642
-
the name of one of the three YAML configuration files in the ``.ci_support``
643
-
directory (either ``linux64``, ``osx64``, or ``win64``). As an example, you can
644
-
invoke the command as follows. For this to work correctly, you must have ``shyaml`` installed on your machine, for example ``conda install -c conda-forge shyaml``.
641
+
You need to define an environment variable named ``CONFIG``. Its value must correspond
642
+
the name of one of the YAML configuration file in the ``.ci_support``
643
+
directory (for all practical purposes, only ``linux64`` is used here). As an example, you can
644
+
invoke the command as follows.
645
645
646
646
.. code-block:: sh
647
647
648
648
$ cd staged-recipes
649
649
$ CONFIG=linux64 ./.scripts/run_docker_build.sh
650
650
651
-
Once built, you can find the finished package under ``staged-recipes/build_artifacts``.
651
+
Once built, you can find the finished package under ``staged-recipes/build_artifacts``. In order to run cuda-enabled builds locally, you need to set the ``IMAGE_NAME`` environment variable alongside the ``CONFIG`` environment variable (see the following for cuda 10.2 and 11.2).
If you are trying to run ``osx64`` builds, you can directly invoke ``run_osx_build.sh`` script.
664
+
665
+
.. code-block:: sh
666
+
667
+
$ cd staged-recipes
668
+
$ .scripts/run_osx_build.sh
669
+
670
+
671
+
Or you can build using your own conda-build environment (``conda install conda-build`` or ``mamba install boa``) and the run the command (``conda build recipes/RECIPE_DIR`` or ``mamba build recipes/RECIPE_DIR``). However, if the recipe has additional variables like ``cuda_compiler_version`` in the case of cuda-enabled builds. Then, you would need to set that to ``"None"`` when running on osx.
0 commit comments