File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+ ### Fixed
5
+ - Fix regression in ` install_extension ` crashing since 1.8.0. [ #380 ] ( https://github.com/PyO3/setuptools-rust/pull/380 )
6
+
3
7
## 1.8.0 (2023-10-26)
4
8
### Packaging
5
9
- Drop support for Python 3.7. [ #357 ] ( https://github.com/PyO3/setuptools-rust/pull/357 )
Original file line number Diff line number Diff line change @@ -372,6 +372,8 @@ def install_extension(
372
372
# will install the rust library into the module directory
373
373
ext_path = self .get_dylib_ext_path (ext , module_name )
374
374
375
+ os .makedirs (os .path .dirname (ext_path ), exist_ok = True )
376
+
375
377
# Make filenames relative to cwd where possible, to make logs and
376
378
# errors below a little neater
377
379
@@ -381,7 +383,6 @@ def install_extension(
381
383
if ext_path .startswith (cwd ):
382
384
ext_path = os .path .relpath (ext_path , cwd )
383
385
384
- os .makedirs (os .path .dirname (ext_path ), exist_ok = True )
385
386
logger .info ("Copying rust artifact from %s to %s" , dylib_path , ext_path )
386
387
387
388
# We want to atomically replace any existing library file. We can't
You can’t perform that action at this time.
0 commit comments