Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /trunk/py2exe/setup.py [r737] .. [r738] Maximize Restore

  Switch to unified view

a/trunk/py2exe/setup.py b/trunk/py2exe/setup.py
1
#!/usr/bin/python
1
#!/usr/bin/python
2
##
2
##
3
##     Copyright (c) 2000-2008 Thomas Heller, Jimmy Retzlaff
3
##     Copyright (c) 2000-2013 Thomas Heller, Jimmy Retzlaff
4
##
4
##
5
## Permission is hereby granted, free of charge, to any person obtaining
5
## Permission is hereby granted, free of charge, to any person obtaining
6
## a copy of this software and associated documentation files (the
6
## a copy of this software and associated documentation files (the
7
## "Software"), to deal in the Software without restriction, including
7
## "Software"), to deal in the Software without restriction, including
8
## without limitation the rights to use, copy, modify, merge, publish,
8
## without limitation the rights to use, copy, modify, merge, publish,
...
...
27
Python scripts.
27
Python scripts.
28
"""
28
"""
29
29
30
from py2exe import __version__
30
from py2exe import __version__
31
31
32
# $Id: setup.py 736 2013-07-02 05:53:55Z theller $
32
# $Id: setup.py 738 2013-09-07 10:11:45Z theller $
33
33
34
import sys, os, string
34
import sys, os, string
35
from distutils.core import setup, Extension, Command
35
from distutils.core import setup, Extension, Command
36
from distutils.dist import Distribution
36
from distutils.dist import Distribution
37
from distutils.command import build_ext, build
37
from distutils.command import build_ext, build
...
...
374
374
375
extra_compile_args = []
375
extra_compile_args = []
376
extra_link_args = []
376
extra_link_args = []
377
377
378
if 0:
378
if 0:
379
    # enable this to debug a release build
379
    # enable this to include debug info into a release build
380
    extra_compile_args.append("/Z7")
380
    extra_compile_args.append("/Z7")
381
    extra_link_args.append("/DEBUG")
381
    extra_link_args.append("/DEBUG")
382
    macros.append(("VERBOSE", "1"))
382
383
383
##macros.append(("AS_PY2EXE_BUILTIN", "1")) # for runtime linking python.dll in _memimporter.c
384
##macros.append(("AS_PY2EXE_BUILTIN", "1")) # for runtime linking python.dll in _memimporter.c
384
depends = ["source/import-tab.c", "source/import-tab.h"]
385
depends = ["source/import-tab.c", "source/import-tab.h"]
385
386
386
_memimporter = Extension("_memimporter",
387
_memimporter = Extension("_memimporter",