~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Robert Collins
  • Date: 2007-03-11 23:34:27 UTC
  • mto: This revision was merged to the branch mainline in revision 2442.
  • Revision ID: robertc@robertcollins.net-20070311233427-z8skxqrx8shqy1de
Fix building of C modules without pyrex installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
    from Pyrex.Distutils import build_ext
155
155
except ImportError:
156
156
    # try to build the extension from the prior generated source.
157
 
    print ("Pyrex not available, while bzr will build"
158
 
           ", you cannot modify the C extensions.")
159
 
    from distutils.command import build_ext
 
157
    print ("Pyrex not available, while bzr will build, "
 
158
           "you cannot modify the C extensions.")
 
159
    from distutils.command.build_ext import build_ext
160
160
    from distutils.extension import Extension
161
161
    #ext_modules.append(
162
162
    #    Extension("bzrlib.modulename", ["bzrlib/foo.c"], libraries = []))