Skip to content

Commit

Permalink
test build: py38-win32
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkueid committed Oct 25, 2024
1 parent f98d37c commit a1c1ba4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:

strategy:
matrix:
python-version: ['3.8.0', '3.9.0', '3.10.0', '3.11.0', '3.12.0']
architecture: ['x86', 'x64']
python-version: ['3.8.0']
architecture: ['x86']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(DEFINED PYTHON_INSTALLATION_PATH)
message("PIP is found: ${CMAKE_PREFIX_PATH}")
else()
# 手动设置
set(CMAKE_PREFIX_PATH D:/Python/x86/3.8)
set(CMAKE_PREFIX_PATH D:/Python/x64/3.9)
message("PIP not found.\nUse default: ${CMAKE_PREFIX_PATH}")
endif()

Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ def build_extension(self, ext):
build_args = ["--config", "Release"]

if platform.system() == "Windows":
cmake_args += [
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}".format("Release", extdir)
]
cmake_args += []
if platform.python_compiler().find("64 bit") > 0:
print("Building for 64 bit")
cmake_args += ["-A", "x64"]
Expand Down

0 comments on commit a1c1ba4

Please sign in to comment.