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':
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,
......
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