Ignore unknown distribution option.

This commit is contained in:
Bastian Kleineidam 2013-04-04 18:30:02 +02:00
parent cc3b05e532
commit 55d350c187

View file

@ -19,6 +19,7 @@ import re
import glob import glob
import shutil import shutil
import subprocess import subprocess
import warnings
try: try:
# py2exe monkey-patches the distutils.core.Distribution class # py2exe monkey-patches the distutils.core.Distribution class
# So we need to import it before importing the Distribution class # So we need to import it before importing the Distribution class
@ -51,6 +52,8 @@ py2exe_options = dict(
optimize=2, optimize=2,
) )
warnings.filterwarnings("ignore", r"Unknown distribution option")
def normpath (path): def normpath (path):
"""Norm a path name to platform specific notation.""" """Norm a path name to platform specific notation."""
return os.path.normpath(path) return os.path.normpath(path)