deluge/library/setup_naive.py

76 lines
2.8 KiB
Python
Raw Normal View History

2006-12-01 20:46:48 +00:00
#
2006-12-02 12:47:16 +00:00
# Copyright (c) 2006 Alon Zakai ('Kripken') <kripkensteiner@gmail.com>
2006-12-01 18:07:03 +00:00
#
2006-12-01 20:46:48 +00:00
# 2006-15-9
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2006-12-01 18:07:03 +00:00
#
import platform
pythonVersion = platform.python_version()[0:3]
from distutils.core import setup, Extension
2006-12-03 06:31:16 +00:00
module1 = Extension('pytorrent_core',
2006-12-01 18:07:03 +00:00
include_dirs = ['./include', './include/libtorrent',
'/usr/include/python' + pythonVersion],
libraries = ['boost_filesystem', 'boost_date_time',
'boost_program_options', 'boost_regex',
'boost_serialization', 'boost_thread', 'z', 'pthread'],
2006-12-05 09:22:53 +00:00
extra_compile_args = ["-Wno-missing-braces"],
# extra_link_args = [""],
2006-12-01 18:07:03 +00:00
sources = ['alert.cpp',
'allocate_resources.cpp',
'bt_peer_connection.cpp',
'entry.cpp',
'escape_string.cpp',
'file.cpp',
'http_tracker_connection.cpp',
'identify_client.cpp',
'ip_filter.cpp',
'peer_connection.cpp',
'piece_picker.cpp',
'policy.cpp',
2006-12-03 06:31:16 +00:00
'pytorrent_core.cpp',
2006-12-01 18:07:03 +00:00
'session.cpp',
'session_impl.cpp',
'sha1.cpp',
'stat.cpp',
'storage.cpp',
'torrent.cpp',
'torrent_handle.cpp',
'torrent_info.cpp',
'tracker_manager.cpp',
'udp_tracker_connection.cpp',
'web_peer_connection.cpp',
'./kademlia/closest_nodes.cpp',
'./kademlia/dht_tracker.cpp',
'./kademlia/find_data.cpp',
'./kademlia/node.cpp',
'./kademlia/node_id.cpp',
'./kademlia/refresh.cpp',
'./kademlia/routing_table.cpp',
'./kademlia/rpc_manager.cpp',
'./kademlia/traversal_algorithm.cpp'])
2006-12-05 09:22:53 +00:00
setup(name = 'pytorrent_core',
version = '0.5.0',
description = 'A module for the bittorrent protocol. Built using (Sourgeforge, not Rakshasha) libtorrent.',
author="Alon Zakai ('Kripken'), Zach Tibbitts",
author_email="kripkensteiner@gmail.com",
url="http://www.deluge-torrent.org",
ext_modules = [module1])