File tree 1 file changed +18
-4
lines changed
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 16
16
# You should have received a copy of the GNU Lesser General Public License
17
17
# along with this library. If not, see <http://www.gnu.org/licenses/>.
18
18
19
- from distutils .command .install import install
20
- from distutils .command .install_lib import install_lib
21
- from distutils .core import setup
22
- from distutils .sysconfig import get_config_vars
19
+ args = {}
20
+ try :
21
+ from setuptools import setup
22
+
23
+ from setuptools .command .install import install
24
+ from setuptools .command .install_lib import install_lib
25
+
26
+ args ['install_requires' ]= ['pycrypto>=2.1' ]
27
+ except ImportError :
28
+ print '\n *** setuptools not found! Falling back to distutils\n \n '
29
+ from distutils .core import setup
30
+
31
+ from distutils .command .install import install
32
+ from distutils .command .install_lib import install_lib
33
+
34
+
23
35
import os .path
24
36
25
37
class gajimpath_install (install ):
@@ -153,4 +165,6 @@ def install(self):
153
165
],
154
166
155
167
cmdclass = {'install_lib' :checked_install_lib , 'install' :gajimpath_install },
168
+
169
+ ** args
156
170
)
You can’t perform that action at this time.
0 commit comments