@@ -278,7 +278,7 @@ def _has_extension_modules(self) -> bool:
278
278
279
279
@property
280
280
def normalized_name (self ) -> str :
281
- return self ._project .name .replace ('-' , '_' )
281
+ return self ._metadata .name .replace ('-' , '_' )
282
282
283
283
@property
284
284
def basename (self ) -> str :
@@ -425,7 +425,7 @@ def _install_path(self, wheel_file: mesonpy._wheelfile.WheelFile, origin: Path,
425
425
# directory, in the form of a relative RPATH entry. meson-python
426
426
# relocates the shared libraries to the $project.mesonpy.libs
427
427
# folder. Rewrite the RPATH to point to that folder instead.
428
- libspath = os .path .relpath (f'.{ self ._project . name } .mesonpy.libs' , destination .parent )
428
+ libspath = os .path .relpath (f'.{ self .normalized_name } .mesonpy.libs' , destination .parent )
429
429
mesonpy ._rpath .fix_rpath (origin , libspath )
430
430
431
431
try :
@@ -469,7 +469,7 @@ def build(self, directory: Path) -> pathlib.Path:
469
469
pass
470
470
elif path == 'mesonpy-libs' :
471
471
# custom installation path for bundled libraries
472
- dst = pathlib .Path (f'.{ self ._project . name } .mesonpy.libs' , dst )
472
+ dst = pathlib .Path (f'.{ self .normalized_name } .mesonpy.libs' , dst )
473
473
else :
474
474
dst = pathlib .Path (self .data_dir , path , dst )
475
475
0 commit comments