diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-02-26 21:04:11 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-02-26 21:04:11 +0200 |
| commit | efceac497fa2702124398b2712761015d9a1c78a (patch) | |
| tree | fd5ce9ff4664bf6111572e094ea186f003dcd76c /test cases/python3/2 extmodule | |
| parent | 836b121a9cebce2c5bde2cf07df147a382363348 (diff) | |
| download | meson-efceac497fa2702124398b2712761015d9a1c78a.tar.gz | |
Python extension module finally works on Windows.
Diffstat (limited to 'test cases/python3/2 extmodule')
| -rw-r--r-- | test cases/python3/2 extmodule/ext/meson.build | 3 | ||||
| -rw-r--r-- | test cases/python3/2 extmodule/meson.build | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test cases/python3/2 extmodule/ext/meson.build b/test cases/python3/2 extmodule/ext/meson.build index 04c0592c2..7d67953cb 100644 --- a/test cases/python3/2 extmodule/ext/meson.build +++ b/test cases/python3/2 extmodule/ext/meson.build @@ -1,6 +1,9 @@ if host_machine.system() == 'darwin' # Default suffix is 'dylib' but Python does not use for extensions. suffix = 'so' +elif host_machine.system() == 'windows' + # On Windows the extension is pyd for some unexplainable reason. + suffix = 'pyd' else suffix = [] endif diff --git a/test cases/python3/2 extmodule/meson.build b/test cases/python3/2 extmodule/meson.build index a86a1222c..858bbea9f 100644 --- a/test cases/python3/2 extmodule/meson.build +++ b/test cases/python3/2 extmodule/meson.build @@ -1,4 +1,7 @@ -project('Python extension module', 'c') +project('Python extension module', 'c', + default_options : ['buildtype=release']) +# Because Windows Python ships only with optimized libs, +# we must build this project the same way. py3_dep = dependency('python3') |
