~bzr/bzr/readdir

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Robert Collins
  • Date: 2007-03-08 04:38:02 UTC
  • Revision ID: robertc@robertcollins.net-20070308043802-tpk2dyt0n2glwuhs
Restore most of pyrex readdir functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
           ", you cannot modify the C extensions.")
159
159
    from distutils.command import build_ext
160
160
    from distutils.extension import Extension
161
 
    #ext_modules.append(
162
 
    #    Extension("bzrlib.modulename", ["bzrlib/foo.c"], libraries = []))
 
161
    ext_modules.append(
 
162
        Extension("bzrlib.readdir", ["bzrlib/readdir.c"], libraries = []))
163
163
else:
164
164
    from distutils.extension import Extension
165
 
    #ext_modules.append(
166
 
    #    Extension("bzrlib.modulename", ["bzrlib/foo.pyx"], libraries = []))
 
165
    ext_modules.append(
 
166
        Extension("bzrlib.readdir", ["bzrlib/readdir.pyx"], libraries = []))
 
167
 
167
168
command_classes['build_ext'] = build_ext
168
169
 
169
170
if 'bdist_wininst' in sys.argv: