Skip to content

Commit 29bbddd

Browse files
committed
Override setuptools editable_wheel command to also generate scripts/picard
1 parent d594198 commit 29bbddd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
setup,
5454
)
5555
from setuptools.command.build import build
56+
from setuptools.command.editable_wheel import editable_wheel
5657
from setuptools.command.install import install
5758

5859

@@ -233,6 +234,12 @@ def _metadata(self):
233234
}
234235

235236

237+
class picard_editable_wheel(editable_wheel):
238+
def run(self):
239+
generate_file('scripts/picard.in', 'scripts/' + PACKAGE_NAME, {'autoupdate': True})
240+
super().run()
241+
242+
236243
def py_from_ui(uifile):
237244
return "ui_%s.py" % os.path.splitext(os.path.basename(uifile))[0]
238245

@@ -666,6 +673,7 @@ def _picard_get_locale_files():
666673
'build': picard_build,
667674
'build_locales': picard_build_locales,
668675
'build_ui': picard_build_ui,
676+
'editable_wheel': picard_editable_wheel,
669677
'clean_ui': picard_clean_ui,
670678
'build_appdata': picard_build_appdata,
671679
'regen_appdata_pot_file': picard_regen_appdata_pot_file,

0 commit comments

Comments
 (0)