mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
cleanup/reorder a bit
This commit is contained in:
parent
382f9cf614
commit
1c576164e8
1 changed files with 45 additions and 44 deletions
89
setup.py
89
setup.py
|
@ -30,17 +30,17 @@
|
||||||
|
|
||||||
import ez_setup
|
import ez_setup
|
||||||
ez_setup.use_setuptools()
|
ez_setup.use_setuptools()
|
||||||
|
import glob
|
||||||
|
|
||||||
from setuptools import setup, find_packages, Extension
|
from setuptools import setup, find_packages, Extension
|
||||||
from distutils import cmd, sysconfig
|
from distutils import cmd, sysconfig
|
||||||
from distutils.command.build import build as _build
|
from distutils.command.build import build as _build
|
||||||
from distutils.command.install import install as _install
|
from distutils.command.install import install as _install
|
||||||
from distutils.command.install_data import install_data as _install_data
|
from distutils.command.install_data import install_data as _install_data
|
||||||
import msgfmt
|
|
||||||
|
|
||||||
import platform
|
import msgfmt
|
||||||
import glob
|
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
|
|
||||||
python_version = platform.python_version()[0:3]
|
python_version = platform.python_version()[0:3]
|
||||||
|
|
||||||
|
@ -85,29 +85,29 @@ if not os.environ.has_key("CPP"):
|
||||||
|
|
||||||
# The libtorrent extension
|
# The libtorrent extension
|
||||||
_extra_compile_args = [
|
_extra_compile_args = [
|
||||||
"-DTORRENT_USE_OPENSSL=1",
|
|
||||||
"-O2",
|
|
||||||
"-D_FILE_OFFSET_BITS=64",
|
"-D_FILE_OFFSET_BITS=64",
|
||||||
"-DNDEBUG",
|
"-DNDEBUG",
|
||||||
|
"-DTORRENT_USE_OPENSSL=1",
|
||||||
|
"-O2",
|
||||||
]
|
]
|
||||||
|
|
||||||
if windows_check():
|
if windows_check():
|
||||||
_extra_compile_args += [
|
_extra_compile_args += [
|
||||||
|
"-D__USE_W32_SOCKETS",
|
||||||
|
"-D_WIN32_WINNT=0x0500",
|
||||||
|
"-D_WIN32",
|
||||||
|
"-DWIN32_LEAN_AND_MEAN",
|
||||||
|
"-DBOOST_ALL_NO_LIB",
|
||||||
|
"-DBOOST_STATIC_LINK",
|
||||||
|
"-DBOOST_THREAD_USE_LIB",
|
||||||
"-DBOOST_WINDOWS",
|
"-DBOOST_WINDOWS",
|
||||||
"-DBOOST_WINDOWS_API",
|
"-DBOOST_WINDOWS_API",
|
||||||
"-DBOOST_STATIC_LINK",
|
|
||||||
"-DWIN32_LEAN_AND_MEAN",
|
|
||||||
"-D_WIN32_WINNT=0x0500",
|
|
||||||
"-D__USE_W32_SOCKETS",
|
|
||||||
"-D_WIN32",
|
|
||||||
"-DWIN32",
|
|
||||||
"-DUNICODE",
|
|
||||||
"/Zc:wchar_t",
|
|
||||||
"/GR",
|
|
||||||
"-DBOOST_ALL_NO_LIB",
|
|
||||||
"-DBOOST_THREAD_USE_LIB",
|
|
||||||
"-DTORRENT_BUILDING_SHARED",
|
"-DTORRENT_BUILDING_SHARED",
|
||||||
"-DTORRENT_LINKING_SHARED",
|
"-DTORRENT_LINKING_SHARED",
|
||||||
|
"-DWIN32",
|
||||||
|
"-DUNICODE",
|
||||||
|
"/GR",
|
||||||
|
"/Zc:wchar_t",
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
_extra_compile_args += ["-Wno-missing-braces"]
|
_extra_compile_args += ["-Wno-missing-braces"]
|
||||||
|
@ -139,28 +139,28 @@ if windows_check():
|
||||||
_include_dirs += ['./win32/include','./win32/include/openssl', './win32/include/zlib']
|
_include_dirs += ['./win32/include','./win32/include/openssl', './win32/include/zlib']
|
||||||
_library_dirs += ['./win32/lib']
|
_library_dirs += ['./win32/lib']
|
||||||
_libraries = [
|
_libraries = [
|
||||||
|
'advapi32',
|
||||||
'boost_filesystem-vc71-mt-1_35',
|
'boost_filesystem-vc71-mt-1_35',
|
||||||
'boost_date_time-vc71-mt-1_35',
|
'boost_date_time-vc71-mt-1_35',
|
||||||
'boost_thread-vc71-mt-1_35',
|
|
||||||
'boost_system-vc71-mt-1_35',
|
|
||||||
'boost_python-vc71-mt-1_35',
|
|
||||||
'boost_iostreams-vc71-mt-1_35',
|
'boost_iostreams-vc71-mt-1_35',
|
||||||
'zlib',
|
'boost_python-vc71-mt-1_35',
|
||||||
'ssleay32',
|
'boost_system-vc71-mt-1_35',
|
||||||
'libeay32',
|
'boost_thread-vc71-mt-1_35',
|
||||||
'advapi32',
|
|
||||||
'wsock32',
|
|
||||||
'gdi32',
|
'gdi32',
|
||||||
'ws2_32'
|
'libeay32',
|
||||||
|
'ssleay32',
|
||||||
|
'ws2_32',
|
||||||
|
'wsock32',
|
||||||
|
'zlib'
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
_include_dirs += ['/usr/include/python' + python_version]
|
_include_dirs += ['/usr/include/python' + python_version]
|
||||||
_libraries = [
|
_libraries = [
|
||||||
'boost_filesystem',
|
'boost_filesystem',
|
||||||
'boost_date_time',
|
'boost_date_time',
|
||||||
'boost_thread',
|
|
||||||
'boost_python',
|
|
||||||
'boost_iostreams',
|
'boost_iostreams',
|
||||||
|
'boost_python',
|
||||||
|
'boost_thread',
|
||||||
'pthread',
|
'pthread',
|
||||||
'ssl',
|
'ssl',
|
||||||
'z'
|
'z'
|
||||||
|
@ -185,10 +185,10 @@ else:
|
||||||
|
|
||||||
libtorrent = Extension(
|
libtorrent = Extension(
|
||||||
'libtorrent',
|
'libtorrent',
|
||||||
include_dirs = _include_dirs,
|
|
||||||
library_dirs = _library_dirs,
|
|
||||||
libraries = _libraries,
|
|
||||||
extra_compile_args = _extra_compile_args,
|
extra_compile_args = _extra_compile_args,
|
||||||
|
include_dirs = _include_dirs,
|
||||||
|
libraries = _libraries,
|
||||||
|
library_dirs = _library_dirs,
|
||||||
sources = _sources
|
sources = _sources
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -281,15 +281,22 @@ _data_files = [(os.path.join(PREFIX, 'share/icons/scalable/apps'), [
|
||||||
'deluge/data/share/applications/deluge.desktop']),
|
'deluge/data/share/applications/deluge.desktop']),
|
||||||
(os.path.join(PREFIX, 'share/pixmaps'), ['deluge/data/pixmaps/deluge.png'])]
|
(os.path.join(PREFIX, 'share/pixmaps'), ['deluge/data/pixmaps/deluge.png'])]
|
||||||
setup(
|
setup(
|
||||||
name = "deluge",
|
|
||||||
fullname = "Deluge Bittorent Client",
|
|
||||||
version = "0.6.0.0",
|
|
||||||
author = "Andrew Resch, Marcos Pinto",
|
author = "Andrew Resch, Marcos Pinto",
|
||||||
author_email = "andrewresch@gmail.com, markybob@dipconsultants.com",
|
author_email = "andrewresch@gmail.com, markybob@dipconsultants.com",
|
||||||
|
cmdclass=cmdclass,
|
||||||
|
data_files = _data_files,
|
||||||
description = "GTK+ bittorrent client",
|
description = "GTK+ bittorrent client",
|
||||||
url = "http://deluge-torrent.org",
|
entry_points = """
|
||||||
license = "GPLv2",
|
[console_scripts]
|
||||||
|
deluge = deluge.main:start_ui
|
||||||
|
deluged = deluge.main:start_daemon
|
||||||
|
""",
|
||||||
|
ext_package = "deluge",
|
||||||
|
ext_modules = [libtorrent],
|
||||||
|
fullname = "Deluge Bittorent Client",
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
|
license = "GPLv2",
|
||||||
|
name = "deluge",
|
||||||
package_data = {"deluge": ["ui/gtkui/glade/*.glade",
|
package_data = {"deluge": ["ui/gtkui/glade/*.glade",
|
||||||
"data/pixmaps/*.png",
|
"data/pixmaps/*.png",
|
||||||
"data/pixmaps/*.svg",
|
"data/pixmaps/*.svg",
|
||||||
|
@ -314,16 +321,10 @@ setup(
|
||||||
"ui/webui/templates/advanced/static/*",
|
"ui/webui/templates/advanced/static/*",
|
||||||
"ui/webui/templates/white/*"
|
"ui/webui/templates/white/*"
|
||||||
]},
|
]},
|
||||||
data_files = _data_files,
|
|
||||||
ext_package = "deluge",
|
|
||||||
ext_modules = [libtorrent],
|
|
||||||
packages = find_packages(exclude=["plugins"]),
|
packages = find_packages(exclude=["plugins"]),
|
||||||
cmdclass=cmdclass,
|
url = "http://deluge-torrent.org",
|
||||||
entry_points = """
|
version = "0.6.0.0",
|
||||||
[console_scripts]
|
)
|
||||||
deluge = deluge.main:start_ui
|
|
||||||
deluged = deluge.main:start_daemon
|
|
||||||
""")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f = open("deluge/data/revision", "w")
|
f = open("deluge/data/revision", "w")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue