This repository was archived by the owner on Apr 14, 2024. It is now read-only.
File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
from distutils .core import setup , Extension
3
3
from distutils .command .build_py import build_py
4
+ from distutils .command .build_ext import build_ext
4
5
5
6
import os , sys
6
7
10
11
# don't pull it in if we don't have to
11
12
if 'setuptools' in sys .modules :
12
13
import setuptools .command .build_py as setuptools_build_py_module
14
+ from setuptools .command .build_ext import build_ext
13
15
except ImportError :
14
16
pass
15
17
18
+ class build_ext_nofail (build_ext ):
19
+ """Doesn't fail when build our optional extensions"""
20
+ def run (self ):
21
+ try :
22
+ build_ext .run (self )
23
+ except Exception :
24
+ print "Ignored failure when building extensions, pure python modules will be used instead"
25
+ # END ignore errors
26
+
16
27
def get_data_files (self ):
17
28
"""Can you feel the pain ? So, in python2.5 and python2.4 coming with maya,
18
29
the line dealing with the ``plen`` has a bug which causes it to truncate too much.
@@ -56,7 +67,8 @@ def get_data_files(self):
56
67
# END apply setuptools patch too
57
68
58
69
59
- setup (name = "async" ,
70
+ setup (cmdclass = {'build_ext' :build_ext_nofail },
71
+ name = "async" ,
60
72
version = "0.6.1" ,
61
73
description = "Async Framework" ,
62
74
author = "Sebastian Thiel" ,
You can’t perform that action at this time.
0 commit comments