mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
fix: conda-forge patch (#2540)
This commit is contained in:
parent
5ebc78164d
commit
6d2d08db00
@ -39,15 +39,25 @@ headers = main_headers + detail_headers
|
|||||||
cmdclass = {"install_headers": InstallHeadersNested}
|
cmdclass = {"install_headers": InstallHeadersNested}
|
||||||
$extra_cmd
|
$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(
|
setup(
|
||||||
name="pybind11_global",
|
name="pybind11_global",
|
||||||
version="$version",
|
version="$version",
|
||||||
packages=[],
|
packages=[],
|
||||||
headers=headers,
|
headers=headers,
|
||||||
data_files=[
|
data_files=[
|
||||||
("share/cmake/pybind11", cmake_files),
|
(base + "share/cmake/pybind11", cmake_files),
|
||||||
("include/pybind11", main_headers),
|
(base + "include/pybind11", main_headers),
|
||||||
("include/pybind11/detail", detail_headers),
|
(base + "include/pybind11/detail", detail_headers),
|
||||||
],
|
],
|
||||||
cmdclass=cmdclass,
|
cmdclass=cmdclass,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user