mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
freebsd setup.py support
This commit is contained in:
parent
20a3ddae48
commit
5175dbf72d
1 changed files with 9 additions and 1 deletions
8
setup.py
8
setup.py
|
@ -39,6 +39,9 @@ elif platform.system() == "Darwin" :
|
||||||
elif platform.system() == "Windows":
|
elif platform.system() == "Windows":
|
||||||
print "Windows system detected"
|
print "Windows system detected"
|
||||||
OS = "win"
|
OS = "win"
|
||||||
|
elif platform.system() == "FreeBSD":
|
||||||
|
print "FreeBSD system detected"
|
||||||
|
OS = "freebsd"
|
||||||
elif os.name == "posix":
|
elif os.name == "posix":
|
||||||
print "Unix system detected"
|
print "Unix system detected"
|
||||||
OS = "nix"
|
OS = "nix"
|
||||||
|
@ -88,10 +91,15 @@ if ARCH == "x64":
|
||||||
|
|
||||||
if not OS == "win":
|
if not OS == "win":
|
||||||
|
|
||||||
|
if OS == "linux":
|
||||||
if os.WEXITSTATUS(os.system('grep -q "Debian GNU/Linux 4.0\|Ubuntu 7.04\|Ubuntu 6.06\|Fedora Core release 6" /etc/issue')) == 0:
|
if os.WEXITSTATUS(os.system('grep -q "Debian GNU/Linux 4.0\|Ubuntu 7.04\|Ubuntu 6.06\|Fedora Core release 6" /etc/issue')) == 0:
|
||||||
boosttype = 'nomt'
|
boosttype = 'nomt'
|
||||||
|
elif OS == "freebsd":
|
||||||
|
boosttype = 'nomt'
|
||||||
else:
|
else:
|
||||||
boosttype = 'mt'
|
boosttype = 'mt'
|
||||||
|
|
||||||
|
|
||||||
removals = ['-g', '-DNDEBUG', '-O2', '-Wstrict-prototypes']
|
removals = ['-g', '-DNDEBUG', '-O2', '-Wstrict-prototypes']
|
||||||
additions = ['-DNDEBUG', '-O2']
|
additions = ['-DNDEBUG', '-O2']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue