Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/test-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: |
python3-config --cflags --embed
python3-config --libs --embed
if: runner.os != 'Windows'
- run: |
python-config --cflags --embed
python-config --libs --embed
if: runner.os == 'Windows'
- run: |
pkg-config --cflags python3-embed
pkg-config --libs python3-embed
- run: npm install --ignore-scripts
- run: npx @mapbox/node-pre-gyp configure
- run: npx @mapbox/node-pre-gyp build -j max
Expand Down
14 changes: 7 additions & 7 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,30 @@
['OS == "win"', {
'conditions': [
['builtin_python == "false" and external_python == "false"', {
'include_dirs': [ '<!(python -c "import os, sys; print(os.path.dirname(sys.executable))")\include' ],
'include_dirs': [ '<!(python -c "import os, sys; print(os.path.dirname(sys.executable))")\\include' ],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': '<!(python -c "import os, sys; print(os.path.dirname(sys.executable))")\libs'
'AdditionalLibraryDirectories': '<!(python -c "import os, sys; print(os.path.dirname(sys.executable))")\\libs'
}
},
}],
['builtin_python == "true"', {
'dependencies': [ 'builtin_python' ],
'include_dirs': [ 'build\Python-$(BUILTIN_PYTHON_VERSION)\Include', 'build\Python-$(BUILTIN_PYTHON_VERSION)\PC' ],
'include_dirs': [ 'build\\Python-$(BUILTIN_PYTHON_VERSION)\\Include', 'build\\Python-$(BUILTIN_PYTHON_VERSION)\\PC' ],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': '<(module_path)\libs'
'AdditionalLibraryDirectories': '<(module_path)\\libs'
}
},
}]]
}],
['OS != "win"', {
'conditions': [
['builtin_python == "false" and external_python == "false"', {
'cflags': [ '<!@(pkg-config --cflags python3-embed)' ],
'libraries': [ '<!@(pkg-config --libs python3-embed)' ],
'cflags': [ '<!@(python3-config --cflags --embed)' ],
'libraries': [ '<!@(python3-config --libs --embed)' ],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [ '<!@(pkg-config --cflags python3-embed)' ],
'OTHER_CPLUSPLUSFLAGS': [ '<!@(python3-config --cflags --embed)' ],
}
}],
['builtin_python == "false" and external_python == "true"', {
Expand Down
2 changes: 1 addition & 1 deletion wiki
Submodule wiki updated from 62a5ef to b05e44
Loading