/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Alexander Belchenko
  • Date: 2007-09-13 11:00:18 UTC
  • mto: (2814.7.1 0.91-integration)
  • mto: This revision was merged to the branch mainline in revision 2866.
  • Revision ID: bialix@ukr.net-20070913110018-whu5m8wfdu7j3n5e
support for win32

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
command_classes = {'install_scripts': my_install_scripts,
151
151
                   'build': bzr_build}
152
152
from distutils import log
153
 
from distutils.errors import CCompilerError
 
153
from distutils.errors import CCompilerError, DistutilsPlatformError
154
154
from distutils.extension import Extension
155
155
ext_modules = []
156
156
try:
171
171
 
172
172
class build_ext_if_possible(build_ext):
173
173
 
 
174
    def run(self):
 
175
        try:
 
176
            build_ext.run(self)
 
177
        except DistutilsPlatformError, e:
 
178
            if sys.platform == 'win32':
 
179
                log.warn(str(e))
 
180
                log.warn("Extensions cannot be compiled, "
 
181
                         "will use pure Python modules instead")
 
182
 
174
183
    def build_extension(self, ext):
175
184
        try:
176
185
            build_ext.build_extension(self, ext)