setup.py
changeset 24192 390410a6545d
parent 24191 8fe5fc8d7b8e
child 24214 a5f1bccd2996
equal deleted inserted replaced
24191:8fe5fc8d7b8e 24192:390410a6545d
    60         import bz2
    60         import bz2
    61         bz2.BZ2Compressor # silence unused import warning
    61         bz2.BZ2Compressor # silence unused import warning
    62     except ImportError:
    62     except ImportError:
    63         raise SystemExit(
    63         raise SystemExit(
    64             "Couldn't import standard bz2 (incomplete Python install).")
    64             "Couldn't import standard bz2 (incomplete Python install).")
       
    65 
       
    66 ispypy = "PyPy" in sys.version
    65 
    67 
    66 import os, stat, subprocess, time
    68 import os, stat, subprocess, time
    67 import re
    69 import re
    68 import shutil
    70 import shutil
    69 import tempfile
    71 import tempfile
   274             self.mkpath(join('mercurial', modir))
   276             self.mkpath(join('mercurial', modir))
   275             self.make_file([pofile], mobuildfile, spawn, (cmd,))
   277             self.make_file([pofile], mobuildfile, spawn, (cmd,))
   276 
   278 
   277 
   279 
   278 class hgdist(Distribution):
   280 class hgdist(Distribution):
   279     pure = 0
   281     pure = ispypy
   280 
   282 
   281     global_options = Distribution.global_options + \
   283     global_options = Distribution.global_options + \
   282                      [('pure', None, "use pure (slow) Python "
   284                      [('pure', None, "use pure (slow) Python "
   283                         "code instead of C extensions"),
   285                         "code instead of C extensions"),
   284                       ('c2to3', None, "(experimental!) convert "
   286                       ('c2to3', None, "(experimental!) convert "