Эх сурвалжийг харах

well, it seems adding man page is a bad idea

it's hard to remove
it's not supported
oz123 11 жил өмнө
parent
commit
2649289142
1 өөрчлөгдсөн 3 нэмэгдсэн , 9 устгасан
  1. 3 9
      setup.py

+ 3 - 9
setup.py

@@ -8,7 +8,6 @@ import pwman
 import sys
 from setuptools.command.install import install
 import os
-import shutil
 
 
 class PyCryptoInstallCommand(install):
@@ -32,13 +31,6 @@ class PyCryptoInstallCommand(install):
             print(('Please use pip or your Distro\'s package manager '
                    'to install pycrypto ...'))
 
-
-class CustomInstallCommand(install):
-    """Customized setuptools install command - prints a friendly greeting."""
-    def run(self):
-        install.run(self)
-        shutil.copy("documentation/man_page/pwman3.1", "/usr/share/man/man1/")
-
 setup(name=pwman.appname,
       version=pwman.version,
       description=pwman.description,
@@ -52,6 +44,8 @@ setup(name=pwman.appname,
                 'pwman.exchange',
                 'pwman.ui',
                 'pwman.util'],
+      package_data={"data": ["documentation"]},
+      include_package_data=True,
       scripts=['scripts/pwman3'],
       zip_safe=False,
       install_requires=['pycrypto>=2.6',
@@ -69,7 +63,7 @@ setup(name=pwman.appname,
           'Programming Language :: Python :: 2.7'
       ],
       test_suite='pwman.tests.suite',
-      cmdclass={'install': CustomInstallCommand,
+      cmdclass={
                 'install_pycrypto': PyCryptoInstallCommand},
 
       )