|
35 | 35 | stim_polyfill = Extension( |
36 | 36 | 'stim._stim_march_polyfill', |
37 | 37 | sources=RELEVANT_SOURCE_FILES, |
| 38 | + headers=HEADER_FILES, |
38 | 39 | include_dirs=[pybind11.get_include(), "src"], |
39 | 40 | language='c++', |
40 | | - data_files=['pyproject.toml'] + HEADER_FILES, |
41 | 41 | extra_compile_args=[ |
42 | 42 | *common_compile_args, |
43 | 43 | # I would specify -mno-sse2 but that causes build failures in non-stim code...? |
|
48 | 48 | stim_sse2 = Extension( |
49 | 49 | 'stim._stim_march_sse2', |
50 | 50 | sources=RELEVANT_SOURCE_FILES, |
| 51 | + headers=HEADER_FILES, |
51 | 52 | include_dirs=[pybind11.get_include(), "src"], |
52 | 53 | language='c++', |
53 | | - data_files=['pyproject.toml'] + HEADER_FILES, |
54 | 54 | extra_compile_args=[ |
55 | 55 | *common_compile_args, |
56 | 56 | '-msse2', |
|
61 | 61 | stim_avx2 = Extension( |
62 | 62 | 'stim._stim_march_avx2', |
63 | 63 | sources=RELEVANT_SOURCE_FILES, |
| 64 | + headers=HEADER_FILES, |
64 | 65 | include_dirs=[pybind11.get_include(), "src"], |
65 | 66 | language='c++', |
66 | | - data_files=['pyproject.toml'] + HEADER_FILES, |
67 | 67 | extra_compile_args=[ |
68 | 68 | *common_compile_args, |
69 | 69 | '-msse2', |
|
87 | 87 | long_description_content_type='text/markdown', |
88 | 88 | ext_modules=[stim_polyfill, stim_sse2, stim_avx2], |
89 | 89 | python_requires='>=3.6.0', |
90 | | - data_files=[('', ['glue/python/README.md'])], |
| 90 | + data_files=[('', ['glue/python/README.md', 'pyproject.toml'])], |
91 | 91 | packages=['stim'], |
92 | 92 | package_dir={'stim': 'glue/python/src/stim'}, |
93 | 93 | install_requires=['numpy'], |
|
0 commit comments