浏览代码

Exclude Crypto module

Oz N Tiram 9 年之前
父节点
当前提交
097147a9d0
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      setup.py

+ 7 - 2
setup.py

@@ -334,6 +334,12 @@ It allows one to store passwords in database locked by master password which
 is AES encrypted.
 is AES encrypted.
 Pwman3 supports MySQL, Postgresql and SQLite and even MongoDB"""
 Pwman3 supports MySQL, Postgresql and SQLite and even MongoDB"""
 
 
+packages = find_packages(exclude=['tests', 'pwman/ui/templates',
+                                      'pwman/util/crypto'])
+
+# hack to exclude crypto module
+packages.pop(packages.index('pwman.util.crypto'))
+
 
 
 setup(name='pwman3',
 setup(name='pwman3',
       version='0.8.1',
       version='0.8.1',
@@ -343,8 +349,7 @@ setup(name='pwman3',
       author_email='nahumoz@gmail.com',
       author_email='nahumoz@gmail.com',
       url='http://pwman3.github.io/pwman3/',
       url='http://pwman3.github.io/pwman3/',
       license="GNU GPL",
       license="GNU GPL",
-      packages=find_packages(exclude=['tests', 'pwman/ui/templates',
-                                      'pwman/util/crypto']),
+      packages=packages,
       include_package_data=True,
       include_package_data=True,
       zip_safe=False,
       zip_safe=False,
       install_requires=install_requires,
       install_requires=install_requires,