diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-ftp/pybootd/files/pybootd-scripts.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-ftp/pybootd/files/pybootd-scripts.patch')
-rw-r--r-- | net-ftp/pybootd/files/pybootd-scripts.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net-ftp/pybootd/files/pybootd-scripts.patch b/net-ftp/pybootd/files/pybootd-scripts.patch new file mode 100644 index 000000000000..71a001f44798 --- /dev/null +++ b/net-ftp/pybootd/files/pybootd-scripts.patch @@ -0,0 +1,36 @@ +install the pybootd.py helper as pybootd otherwise the import gets confused + +--- a/setup.py ++++ b/setup.py +@@ -18,13 +18,23 @@ + # License along with this library; if not, write to the Free Software + # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + ++import shutil + from distutils.core import setup ++import distutils.command.install_scripts + + + def _read(fname): + import os + return open(os.path.join(os.path.dirname(__file__), fname)).read() + ++class script_rename(distutils.command.install_scripts.install_scripts): ++ ++ def run(self): ++ distutils.command.install_scripts.install_scripts.run(self) ++ for script in self.get_outputs(): ++ if script.endswith('.py'): ++ shutil.move(script, script[:-3]) ++ + setup( + name='pybootd', + version='1.5.0', +@@ -56,5 +66,7 @@ setup( + package_data = { + '': ['etc/*.ini', 'etc/*.cfg'], + }, ++ cmdclass = {'install_scripts': script_rename}, ++ scripts = ['pybootd.py'], + long_description=_read('README.rst'), + ) |