Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
common-superbuild
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
ParaView
common-superbuild
Commits
cdf75e58
Commit
cdf75e58
authored
4 years ago
by
Ben Boeckel
Browse files
Options
Downloads
Patches
Plain Diff
python3.functions: support installing Python3 into a bundle
parent
17cf0261
No related branches found
No related tags found
1 merge request
!357
Apple install python3 in package
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/python3.functions.cmake
+23
-0
23 additions, 0 deletions
projects/python3.functions.cmake
with
23 additions
and
0 deletions
projects/python3.functions.cmake
+
23
−
0
View file @
cdf75e58
...
...
@@ -16,6 +16,7 @@ function (superbuild_install_superbuild_python3)
set
(
options
)
set
(
values
BUNDLE
LIBSUFFIX
)
set
(
multivalues
MODULES
)
...
...
@@ -240,6 +241,28 @@ function (superbuild_install_superbuild_python3)
DESTINATION
"bin"
COMPONENT
"superbuild"
)
elseif
(
APPLE
)
superbuild_apple_install_python
(
"
\$
{CMAKE_INSTALL_PREFIX}"
"
${
_install_superbuild_python_BUNDLE
}
"
MODULES
${
modules
}
${
_install_superbuild_python_MODULES
}
MODULE_DIRECTORIES
"
${
superbuild_install_location
}
/lib/python
${
superbuild_python_version
}
"
"
${
superbuild_install_location
}
/lib/python
${
superbuild_python_version
}
/lib-dynload"
PYTHON_DESTINATION
"Contents/Libraries/lib/python
${
superbuild_python_version
}
"
)
# fixup and install everything under lib-dynload.
# fixup is needed to ensure that any dependencies for these libraries are
# installed. this also ensures rpaths etc are fixed up correctly.
file
(
GLOB so_names
"
${
superbuild_install_location
}
/lib/python
${
superbuild_python_version
}
/lib-dynload/*.so"
)
foreach
(
so_name IN LISTS so_names
)
superbuild_apple_install_module
(
"
\$
{CMAKE_INSTALL_PREFIX}"
"
${
_install_superbuild_python_BUNDLE
}
"
"
${
so_name
}
"
"Contents/Libraries/lib/python
${
superbuild_python_version
}
"
LOADER_PATHS
"
${
superbuild_install_location
}
/lib"
)
endforeach
()
else
()
superbuild_unix_install_python
(
MODULE_DESTINATION
"/"
...
...
This diff is collapsed.
Click to expand it.
Ben Boeckel
@ben.boeckel
mentioned in commit
b3d946f6
·
4 years ago
mentioned in commit
b3d946f6
mentioned in commit b3d946f6caa9ecb85a4a2287b5189dbc300b19b2
Toggle commit list
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