Skip to content

Commit

Permalink
fix typo and dev.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed May 14, 2024
1 parent 0cd633a commit e132998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ def configure_scipy_openblas(self, blas_variant='32'):
Requires a pre-installed scipy-openblas32 wheel from PyPI.
"""
openblas_dir = os.getcwd()
pkg_config_fname = os.path.join(openblas_dir, "scipy-openblas.pc")
basedir = os.getcwd()
pkg_config_fname = os.path.join(basedir, "scipy-openblas.pc")

if os.path.exists(pkg_config_fname):
return None
Expand All @@ -625,10 +625,6 @@ def configure_scipy_openblas(self, blas_variant='32'):
with open(local, "w", encoding="utf8") as fid:
fid.write(f"import {module_name}\n")

os.makedirs(openblas_dir, exist_ok=True)
with open(pkg_config_fname, "w", encoding="utf8") as fid:
fid.write(openblas.get_pkg_config().replace("\\", "/"))

@classmethod
def run(cls, add_path=False, **kwargs):
kwargs.update(cls.ctx.get(kwargs))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ before-build = "bash {project}/tools/wheels/cibw_before_build_linux.sh {project}
# RUNNER_OS is a GitHub Actions specific env var; define it here so it works on Cirrus CI too
RUNNER_OS="Linux"
# /project will be the $PWD equivalent inside the docker used to build the wheel
PKG_CONFIG_PATH="/project/
PKG_CONFIG_PATH="/project/"

[tool.cibuildwheel.macos]
before-build = "pip install ninja; bash {project}/tools/wheels/cibw_before_build_macos.sh {project}"
Expand Down

0 comments on commit e132998

Please sign in to comment.