~ubuntu-branches/ubuntu/maverick/libtorrent-rasterbar/maverick

« back to all changes in this revision

Viewing changes to bindings/python/setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2010-08-10 12:59:37 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810125937-jbcmmf17y8yo9hgz
Tags: 0.15.0-0ubuntu1
* New upstream version.
* debian/patches/100_fix_html_docs.patch: refreshed.
* debian/control: bump up standards-version to 3.9.1 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import platform
7
7
import sys
8
8
 
9
 
if 'boost_python-mt' == '':
 
9
if '-lboost_python-mt' == '':
10
10
        print 'You need to pass --enable-python-binding to configure in order ',
11
11
        print 'to properly use this setup. There is no boost.python library configured now'
12
12
        sys.exit(1)
41
41
        except: pass
42
42
        shutil.copyfile(r'bin\msvc-7.1\release\boost-source\geoip-static\link-static\optimization-space\threading-multi\libtorrent.pyd', r'.\build\lib\libtorrent.pyd')
43
43
        setup( name='python-libtorrent',
44
 
                version='0.14.10',
 
44
                version='0.15.0',
45
45
                author = 'Arvid Norberg',
46
46
                author_email='arvid@cs.umu.se',
47
47
                description = 'Python bindings for libtorrent-rasterbar',
62
62
source_list = os.listdir(os.path.join(os.path.dirname(__file__), "src"))
63
63
source_list = [os.path.join("src", s) for s in source_list if s.endswith(".cpp")]
64
64
 
65
 
extra_cmd = '-DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DTORRENT_LINKING_SHARED -DBOOST_EXCEPTION_DISABLE   -pthread -I/opt/local/include  -lboost_filesystem-mt -lboost_thread-mt  -lssl -lcrypto -lboost_system-mt -L/usr/lib -I/usr/include/openssl -DHAVE_SSL'
 
65
extra_cmd = '-DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED  -I/opt/local/include    -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -lboost_python-mt  -lssl -lcrypto -lz   -L/opt/local/lib   -I/opt/local/include  '
66
66
 
67
67
setup( name='python-libtorrent',
68
 
        version='0.14.10',
 
68
        version='0.15.0',
69
69
        author = 'Arvid Norberg',
70
70
        author_email='arvid@cs.umu.se',
71
71
        description = 'Python bindings for libtorrent-rasterbar',
76
76
        ext_modules = [Extension('libtorrent',
77
77
                sources = source_list,
78
78
                language='c++',
79
 
                include_dirs = ['../../include','../../include/libtorrent'] + parse_cmd(extra_cmd, '-I'),
 
79
                include_dirs = ['../../include'] + parse_cmd(extra_cmd, '-I'),
80
80
                library_dirs = ['../../src/.libs'] + parse_cmd(extra_cmd, '-L'),
81
 
                extra_link_args = ' -L/opt/local/lib'.split() + arch(),
82
 
                extra_compile_args = parse_cmd(extra_cmd, '-D', True) + arch() + ['-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION'],
83
 
                libraries = ['torrent-rasterbar','boost_python-mt'] + parse_cmd(extra_cmd, '-l'))],
 
81
                extra_link_args = '-L/opt/local/lib '.split() + arch(),
 
82
                extra_compile_args = parse_cmd(extra_cmd, '-D', True) + arch(),
 
83
                libraries = ['torrent-rasterbar'] + parse_cmd(extra_cmd, '-l'))],
84
84
)