Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fishjojo committed May 5, 2024
1 parent 77a3af6 commit ead77bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: "x86_64"
CMAKE_CONFIGURE_ARGS: "-DWITH_F12=OFF"
with:
package-dir: pyscfadlib
output-dir: pyscfadlib/wheelhouse
Expand Down
4 changes: 1 addition & 3 deletions pyscfadlib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ class CMakeBuild(build_py):
def run(self):
if sys.platform == 'darwin':
platform = os.getenv('_PYTHON_HOST_PLATFORM')
print('debug: ', platform)
if platform.endswith('arm64'):
os.putenv('CMAKE_OSX_ARCHITECTURES', 'arm64')
print('debug: arm64')
elif platform.endswith('x86_64'):
os.putenv('CMAKE_OSX_ARCHITECTURES', 'x86_64')
print('debug: x86_64')

self.plat_name = get_platform()
print('debug: ', self.plat_name)
self.build_base = 'build'
self.build_lib = os.path.join(self.build_base, 'lib')
self.build_temp = os.path.join(self.build_base, f'temp.{self.plat_name}')
Expand Down

0 comments on commit ead77bd

Please sign in to comment.