Skip to content

Commit

Permalink
NLWPY: move setup.py and pyproject.toml up #30
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Feb 21, 2024
1 parent cb5097b commit 3ce510b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
with:
package-dir: nl-writer2/nlwpy/
package-dir: nl-writer2/
env:
CIBW_ARCHS_LINUX: ${{ env.CIBW_ARCHS_LINUX }}
CIBW_ARCHS_MACOS: ${{ env.CIBW_ARCHS_MACOS }}
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
with:
package-dir: nl-writer2/nlwpy/
package-dir: nl-writer2/
env:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_ARCHS_MACOS: ${{ env.CIBW_ARCHS_MACOS }}
Expand Down
18 changes: 9 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ stages:
- task: UsePythonVersion@0
- bash: |
set -ex
cd nl-writer2/nlwpy/
cd nl-writer2/
python -m pip install --upgrade cibuildwheel==2.16.2
cibuildwheel --platform linux --output-dir wheelhouse .
cibuildwheel --platform linux --output-dir nlwpy/wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/nlwpy/wheelhouse'}
Expand All @@ -26,9 +26,9 @@ stages:
- task: UsePythonVersion@0
- bash: |
set -ex
cd nl-writer2/nlwpy/
cd nl-writer2/
python -m pip install --upgrade cibuildwheel==2.16.2
cibuildwheel --platform macos --output-dir wheelhouse .
cibuildwheel --platform macos --output-dir nlwpy/wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/nlwpy/wheelhouse'}
Expand All @@ -38,9 +38,9 @@ stages:
- task: UsePythonVersion@0
- bash: |
set -ex
cd nl-writer2/nlwpy/
cd nl-writer2/
python -m pip install --upgrade cibuildwheel==2.16.2
cibuildwheel --platform windows --output-dir wheelhouse .
cibuildwheel --platform windows --output-dir nlwpy/wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/nlwpy/wheelhouse'}
Expand Down Expand Up @@ -96,9 +96,9 @@ stages:
displayName: Configure qemu
- bash: |
set -ex
cd nl-writer2/nlwpy/
cd nl-writer2/
python -m pip install --upgrade cibuildwheel==2.16.2
cibuildwheel --platform linux --output-dir wheelhouse .
cibuildwheel --platform linux --output-dir nlwpy/wheelhouse .
displayName: Build wheels
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'nl-writer2/nlwpy/wheelhouse'}
Expand All @@ -120,4 +120,4 @@ stages:
inputs:
targetPath: 'artifacts/'
artifact: 'release'
artifactType: 'pipeline'
artifactType: 'pipeline'
File renamed without changes.
4 changes: 2 additions & 2 deletions nl-writer2/nlwpy/setup.py → nl-writer2/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
ext_modules = [
Extension(
"nlwpy",
["src/nlw_bindings.cc"] + glob.glob("../src/" + "*.cc"),
["nlwpy/src/nlw_bindings.cc"] + glob.glob("./src/" + "*.cc"),
extra_compile_args=["-std=c++17"],
include_dirs=["./include", pybind11.get_include()],
include_dirs=["include", pybind11.get_include()],
# Example: passing in the version to the compiled code
define_macros=[("VERSION_INFO", __version__)],
),
Expand Down

0 comments on commit 3ce510b

Please sign in to comment.