diff options
Diffstat (limited to '3rdparty/pybind11/tools/setup_global.py.in')
-rw-r--r-- | 3rdparty/pybind11/tools/setup_global.py.in | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/3rdparty/pybind11/tools/setup_global.py.in b/3rdparty/pybind11/tools/setup_global.py.in index 4cf040b2..d91468c1 100644 --- a/3rdparty/pybind11/tools/setup_global.py.in +++ b/3rdparty/pybind11/tools/setup_global.py.in @@ -1,17 +1,11 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +#!/usr/bin/env python3 # Setup script for pybind11-global (in the sdist or in tools/setup_global.py in the repository) # This package is targeted for easy use from CMake. -import contextlib import glob import os import re -import shutil -import subprocess -import sys -import tempfile # Setuptools has to be before distutils from setuptools import setup @@ -33,8 +27,10 @@ class InstallHeadersNested(install_headers): main_headers = glob.glob("pybind11/include/pybind11/*.h") detail_headers = glob.glob("pybind11/include/pybind11/detail/*.h") +stl_headers = glob.glob("pybind11/include/pybind11/stl/*.h") cmake_files = glob.glob("pybind11/share/cmake/pybind11/*.cmake") -headers = main_headers + detail_headers +pkgconfig_files = glob.glob("pybind11/share/pkgconfig/*.pc") +headers = main_headers + detail_headers + stl_headers cmdclass = {"install_headers": InstallHeadersNested} $extra_cmd @@ -56,8 +52,10 @@ setup( headers=headers, data_files=[ (base + "share/cmake/pybind11", cmake_files), + (base + "share/pkgconfig", pkgconfig_files), (base + "include/pybind11", main_headers), (base + "include/pybind11/detail", detail_headers), + (base + "include/pybind11/stl", stl_headers), ], cmdclass=cmdclass, ) |