Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.extension
Commits
17603671
Commit
17603671
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[doc] Document setup of CONDA_BUILD_SYSROOT (closes
bob.devtools#24
)
parent
77744c74
No related branches found
No related tags found
1 merge request
!100
Document setup of CONDA_BUILD_SYSROOT
Pipeline
#30327
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/cplusplus_modules.rst
+14
-5
14 additions, 5 deletions
doc/cplusplus_modules.rst
with
14 additions
and
5 deletions
doc/cplusplus_modules.rst
+
14
−
5
View file @
17603671
...
...
@@ -148,11 +148,11 @@ just do:
.. note::
For macOS-based builds, one also needs to ensure the environment variables
MACOSX_DEPLOYMENT_TARGET
and SDK
ROOT are
properly set. This is
automatically handled for conda-build based runs. If
you are using
buildout or any other setuptools-based system (such as pip
installs) to
build your package, you should ensure that is the case with one
of these 2
methods (more to least recommended):
``
MACOSX_DEPLOYMENT_TARGET
``, ``SDKROOT``, and ``CONDA_BUILD_SYS
ROOT
``
are
properly set. This is
automatically handled for conda-build based runs. If
you are using
buildout or any other setuptools-based system (such as pip
installs) to
build your package, you should ensure that is the case with one
of these 2
methods (more to least recommended):
1. You set the RC variables (see: :ref:`bob.extension.rc`)
`bob.extension.macosx_deployment_target` and
...
...
@@ -173,6 +173,14 @@ just do:
affect builds in other machines and are preserved across package builds,
guaranteeing uniformity.
Unfortunately, the variable `CONDA_BUILD_SYSROOT` must be set on the
environment (conda will preset it otherwise). Change your login profile
shell or similar to add the following:
.. code-block:: sh
$ export CONDA_BUILD_SYSROOT="/opt/MacOSX10.9.sdk"
2. You set the environment variables directly on the current environment.
Example:
...
...
@@ -180,6 +188,7 @@ just do:
$ export MACOSX_DEPLOYMENT_TARGET="10.9"
$ export SDKROOT="/opt/MacOSX10.9.sdk"
$ export CONDA_BUILD_SYSROOT="${SDKROOT}"
Note that this technique is the least ephemeral from all available
options. As soon as you leave the current environment, the variables
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment