Commit 00c58731 authored by owsla's avatar owsla

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@913 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 32855043
...@@ -41,21 +41,22 @@ if os.name == 'posix' or os.name == 'nt': ...@@ -41,21 +41,22 @@ if os.name == 'posix' or os.name == 'nt':
libdir_list = [os.path.join(LIBRSYNC_DIR, 'lib')] libdir_list = [os.path.join(LIBRSYNC_DIR, 'lib')]
if '-lrsync' in LIBS: if '-lrsync' in LIBS:
libname = [] libname = []
if os.name == 'nt':
try: if os.name == 'nt':
import py2exe try:
except ImportError: import py2exe
pass except ImportError:
else: pass
extra_options = { else:
'console': ['rdiff-backup'], extra_options = {
} 'console': ['rdiff-backup'],
if '--single-file' in sys.argv[1:]: }
sys.argv.remove('--single-file') if '--single-file' in sys.argv[1:]:
extra_options.update({ sys.argv.remove('--single-file')
'options': {'py2exe': {'bundle_files': 1}}, extra_options.update({
'zipfile': None 'options': {'py2exe': {'bundle_files': 1}},
}) 'zipfile': None
})
setup(name="rdiff-backup", setup(name="rdiff-backup",
version=version_string, version=version_string,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment