diff options
Diffstat (limited to 'net-ftp/pybootd/files/pybootd-scripts.patch')
-rw-r--r-- | net-ftp/pybootd/files/pybootd-scripts.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/net-ftp/pybootd/files/pybootd-scripts.patch b/net-ftp/pybootd/files/pybootd-scripts.patch deleted file mode 100644 index 71a001f44798..000000000000 --- a/net-ftp/pybootd/files/pybootd-scripts.patch +++ /dev/null @@ -1,36 +0,0 @@ -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'), - ) |