Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
6d2d08db
Unverified
Commit
6d2d08db
authored
Oct 02, 2020
by
Henry Schreiner
Committed by
GitHub
Oct 02, 2020
Browse files
fix: conda-forge patch (#2540)
parent
5ebc7816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
tools/setup_global.py.in
tools/setup_global.py.in
+13
-3
No files found.
tools/setup_global.py.in
View file @
6d2d08db
...
...
@@ -39,15 +39,25 @@ headers = main_headers + detail_headers
cmdclass
=
{
"install_headers"
:
InstallHeadersNested
}
$
extra_cmd
# This will _not_ affect installing from wheels,
# only building wheels or installing from SDist.
# Primarily intended on Windows, where this is sometimes
# customized (for example, conda-forge uses Library/)
base
=
os
.
environ
.
get
(
"PYBIND11_GLOBAL_PREFIX"
,
""
)
# Must have a separator
if
base
and
not
base
.
endswith
(
"/"
):
base
+=
"/"
setup
(
name
=
"pybind11_global"
,
version
=
"$version"
,
packages
=
[],
headers
=
headers
,
data_files
=
[
(
"share/cmake/pybind11"
,
cmake_files
),
(
"include/pybind11"
,
main_headers
),
(
"include/pybind11/detail"
,
detail_headers
),
(
base
+
"share/cmake/pybind11"
,
cmake_files
),
(
base
+
"include/pybind11"
,
main_headers
),
(
base
+
"include/pybind11/detail"
,
detail_headers
),
],
cmdclass
=
cmdclass
,
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment