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
+13-52Lines changed: 13 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -635,62 +635,23 @@ Running tests locally for staged recipes
635
635
636
636
If you want to run and build packages in the staged-recipes repository locally,
637
637
go to the root repository directory and run the
638
-
``.scripts/run_docker_build.sh`` script. This requires that you have docker
639
-
installed on your machine.
638
+
``build-locally.py`` script (you need Python 3). And then you could follow the prompt to select the variant you'd like build. This requires that you have Docker
639
+
installed on your machine if you are building a package for Linux.
640
+
For MacOS, it will prompt you to select a location for the SDK (via ``export OSX_SDK_DIR=/opt``) to be downloaded.
640
641
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
-
646
-
.. code-block:: sh
647
-
648
-
$ cd staged-recipes
649
-
$ CONFIG=linux64 ./.scripts/run_docker_build.sh
650
-
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 then 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