Skip to content

Commit

Permalink
Merge pull request apple#606 from mdwelsh-apple/mdw-fix-documentation
Browse files Browse the repository at this point in the history
Update documentation for Python3 build instructions.
  • Loading branch information
mdwelsh-apple authored Jan 31, 2020
2 parents 729d6ca + 4dd01c8 commit 624092f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ source ./scripts/python_env.sh
Now you can build the package as follows:

```shell
cmake -H. -Bbuild
cmake -H. -Bbuild \
-DPYTHON_EXECUTABLE:FILEPATH=$VIRTUAL_ENV/bin/python \
-DPYTHON_INCLUDE_DIR=$VIRTUAL_ENV/include/python3.7m \
-DPYTHON_LIBRARY=$VIRTUAL_ENV/lib
make -C build -j3
```
(Note that if your `virtualenv` uses a different version of Python,
you will need to modify the `-DPYTHON_INCLUDE_DIR` value accordingly.)

This build directory does not have to be identical to the `build` directory
created by `./configure` as it is here.
Expand All @@ -35,7 +40,8 @@ dev tree into your virtualenv.
You can run all the unit tests not marked as slow using the following command.

```shell
pytest -rfs -m "no slow" <project_source_directory>/coremltools/test
pip install -e .
pytest -rfs -m '"no slow"' coremltools/test
```

Shortcut targets to rebuild and run all the tests exist as well.
Expand Down

0 comments on commit 624092f

Please sign in to comment.