Skip to content

Commit

Permalink
Edit path when building sdist package
Browse files Browse the repository at this point in the history
This patch changes the working directory from the temp to the project
when building sdist package.This resolves issues with relative paths
in configuration files.
  • Loading branch information
OlenaYefymenko committed Dec 5, 2023
1 parent 796361d commit 8877de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cibuildwheel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def main() -> None:
# This is now the new package dir
args.package_dir = project_dir.resolve()

with chdir(temp_dir):
with chdir(project_dir):
build_in_directory(args)
finally:
# avoid https://github.com/python/cpython/issues/86962 by performing
Expand Down

0 comments on commit 8877de8

Please sign in to comment.