From 703994f05a17f46e54edc8cb23f7d6a3bf4620ca Mon Sep 17 00:00:00 2001 From: owsla Date: Mon, 14 Jul 2008 15:27:46 +0000 Subject: Put Windows-specific code at the outer level, not incorrectly inside the argument loop. (Bug fix from Josh Nisly) git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@913 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/dist/setup.py | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'rdiff-backup/dist') diff --git a/rdiff-backup/dist/setup.py b/rdiff-backup/dist/setup.py index 3a011ee..964e122 100755 --- a/rdiff-backup/dist/setup.py +++ b/rdiff-backup/dist/setup.py @@ -41,21 +41,22 @@ if os.name == 'posix' or os.name == 'nt': libdir_list = [os.path.join(LIBRSYNC_DIR, 'lib')] if '-lrsync' in LIBS: libname = [] - if os.name == 'nt': - try: - import py2exe - except ImportError: - pass - else: - extra_options = { - 'console': ['rdiff-backup'], - } - if '--single-file' in sys.argv[1:]: - sys.argv.remove('--single-file') - extra_options.update({ - 'options': {'py2exe': {'bundle_files': 1}}, - 'zipfile': None - }) + +if os.name == 'nt': + try: + import py2exe + except ImportError: + pass + else: + extra_options = { + 'console': ['rdiff-backup'], + } + if '--single-file' in sys.argv[1:]: + sys.argv.remove('--single-file') + extra_options.update({ + 'options': {'py2exe': {'bundle_files': 1}}, + 'zipfile': None + }) setup(name="rdiff-backup", version=version_string, -- cgit v1.2.1