Skip to content

Commit 0403f82

Browse files
authored
Merge pull request #1590 from ngam/patch-1
2 parents 76c9845 + a90294b commit 0403f82

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.ci_scripts/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ dependencies:
1919
# uncomment to restore search
2020
# - elm
2121
# - nodejs
22+
# - pip:
23+
# - sphinxcontrib-newsfeed # this helps when using vscode locally

src/maintainer/adding_pkgs.rst

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -635,20 +635,23 @@ Running tests locally for staged recipes
635635

636636
If you want to run and build packages in the staged-recipes repository locally,
637637
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 to 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 (e.g. ``export OSX_SDK_DIR=/opt``) to be downloaded.
640641

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.
645-
646-
.. code-block:: sh
642+
.. code-block:: bash
643+
644+
$ cd ~/staged-recipes
645+
$ python build-locally.py
647646
648-
$ cd staged-recipes
649-
$ CONFIG=linux64 ./.scripts/run_docker_build.sh
647+
If you know which image you want to build, you can specify it as an argument to the script.
650648

651-
Once built, you can find the finished package under ``staged-recipes/build_artifacts``.
649+
.. code-block:: bash
650+
651+
$ cd ~/staged-recipes
652+
$ python build-locally.py <VARIANT>
653+
654+
where ``<VARIANT>`` is one of the file names in the ``.ci_support/`` directory, e.g. ``linux64``, ``osx64``, and ``linux64_cuda102``.
652655

653656

654657
About

0 commit comments

Comments
 (0)