File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
env :
14
14
CIBW_TEST_COMMAND : python {project}/tests/test.py
15
+ # This is a hack that can be removed when we start using wheels for pybind11
15
16
CIBW_BEFORE_BUILD : pip install cmake git+https://github.com/pybind/pybind11.git@master
16
17
17
18
56
57
- name : Build wheel
57
58
run : python -m cibuildwheel --output-dir wheelhouse
58
59
env :
59
- CIBW_SKIP : cp27-win*
60
+ # We have to skip Win 3.5 for now, because it doesn't support PEP 518
61
+ # build from a portable install (can re-add when using wheels for pybind11)
62
+ CIBW_SKIP : cp27-win* cp35-win*
60
63
61
64
- name : Show files
62
65
run : ls -lh wheelhouse
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ build:
13
13
- CC
14
14
- CXX
15
15
script : |
16
+ # This is a total hack because we are not using conda-forge pybind11. Remove after 2.6.0.
17
+ # And never do this yourself unless you know what you are doing (it
18
+ # explicitly is okay with pybind11, but may not be with arbitrary
19
+ # libraries)
16
20
{{ PYTHON }} -m pip install -vvv "git+https://github.com/pybind/pybind11.git@master"
17
21
{{ PYTHON }} -m pip install . -vvv --no-deps
18
22
{{ PYTHON }} -m pip uninstall -y pybind11
@@ -21,6 +25,7 @@ requirements:
21
25
build :
22
26
- {{ compiler('cxx') }}
23
27
- vs2017_{{ target_platform }} # [win]
28
+ # This is a hack because we are not using conda-forge pybind11. Remove after 2.6.0
24
29
- cmake
25
30
26
31
host :
Original file line number Diff line number Diff line change 13
13
14
14
__version__ = "0.0.1"
15
15
16
+ # Windows strips quotes
17
+ wrap = r'\"{}\"' if sys .platform .startswith ("win" ) else '"{}"'
18
+
16
19
# The main interface is through Pybind11Extension.
17
20
# * You can add cxx_std=11/14/17, and then build_ext can be removed.
18
21
# * You can set include_pybind11=false to add the include directory yourself,
26
29
Pybind11Extension ("python_example" ,
27
30
["src/main.cpp" ],
28
31
# Example: passing in the version to the compiled code
29
- define_macros = [('VERSION_INFO' , '"{}"' .format (__version__ ))],
32
+ define_macros = [('VERSION_INFO' , wrap .format (__version__ ))],
30
33
),
31
34
]
32
35
You can’t perform that action at this time.
0 commit comments