File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,15 @@ def _has_extension_modules(self) -> bool:
187
187
# Assume that all code installed in {platlib} is Python ABI dependent.
188
188
return bool (self ._wheel_files ['platlib' ])
189
189
190
+ @property
191
+ def normalized_name (self ) -> str :
192
+ return self ._project .name .replace ('-' , '_' )
193
+
190
194
@property
191
195
def basename (self ) -> str :
192
196
"""Normalized wheel name and version (eg. meson_python-1.0.0)."""
193
197
return '{distribution}-{version}' .format (
194
- distribution = self ._project . name . replace ( '-' , '_' ) ,
198
+ distribution = self .normalized_name ,
195
199
version = self ._project .version ,
196
200
)
197
201
@@ -537,6 +541,9 @@ def build(self, directory: Path) -> pathlib.Path:
537
541
538
542
return wheel_file
539
543
544
+ def build_editable (self , directory : Path ) -> pathlib .Path :
545
+ self ._build ()
546
+
540
547
541
548
MesonArgsKeys = Literal ['dist' , 'setup' , 'compile' , 'install' ]
542
549
MesonArgs = Mapping [MesonArgsKeys , Collection [str ]]
You can’t perform that action at this time.
0 commit comments