mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 16:38:43 +00:00
move files
This commit is contained in:
parent
9f51af89d9
commit
8df3f55be8
9 changed files with 7 additions and 48 deletions
|
@ -1,5 +1,6 @@
|
||||||
include LICENCE
|
include LICENSE
|
||||||
include README
|
include README
|
||||||
|
include INSTALL
|
||||||
recursive-include glade/ *.glade
|
recursive-include glade/ *.glade
|
||||||
recursive-include include/ *.hpp *.ipp
|
recursive-include include/ *.hpp *.ipp
|
||||||
recursive-include pixmaps/ *.png *.svg *.xpm
|
recursive-include pixmaps/ *.png *.svg *.xpm
|
||||||
|
|
12
setup.py
12
setup.py
|
@ -31,9 +31,6 @@ for removal in removals:
|
||||||
for addition in additions:
|
for addition in additions:
|
||||||
cv["OPT"] = cv["OPT"] + " " + addition
|
cv["OPT"] = cv["OPT"] + " " + addition
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import platform, os
|
import platform, os
|
||||||
|
|
||||||
pythonVersion = platform.python_version()[0:3]
|
pythonVersion = platform.python_version()[0:3]
|
||||||
|
@ -82,15 +79,16 @@ deluge_core = Extension('deluge_core',
|
||||||
'cpp/kademlia/traversal_algorithm.cpp'])
|
'cpp/kademlia/traversal_algorithm.cpp'])
|
||||||
|
|
||||||
|
|
||||||
setup(name="deluge", fullname="Deluge Bittorrent Client", version="0.5.0",
|
setup(name="deluge", fullname="Deluge BitTorrent Client", version="0.5.0",
|
||||||
author="Zach Tibbitts, Alon Zakai",
|
author="Zach Tibbitts, Alon Zakai",
|
||||||
author_email="zach@collegegeek.org, kripkensteiner@gmail.com",
|
author_email="zach@collegegeek.org, kripkensteiner@gmail.com",
|
||||||
description="A bittorrent client written in PyGTK",
|
description="A bittorrent client written in PyGTK",
|
||||||
url="http://deluge-torrent.org",
|
url="http://deluge-torrent.org",
|
||||||
license="GPLv2",
|
license="GPLv2",
|
||||||
scripts=["scripts/deluge"],
|
scripts=["scripts/deluge"],
|
||||||
py_modules=["deluge", "deluge_stats", "delugegtk", "dgtk", "dcommon", "delugeplugins"],
|
packages=['deluge'],
|
||||||
data_files=[("share/deluge/glade", ["glade/delugegtk.glade", "glade/dgtkpopups.glade", "glade/dgtkpref.glade"]),
|
package_dir = {'deluge': 'src'},
|
||||||
("share/deluge/pixmaps", ["pixmaps/deluge32.png","pixmaps/deluge128.png"])],
|
package_data={'deluge': ['glade/*.glade']},
|
||||||
|
ext_package='deluge',
|
||||||
ext_modules=[deluge_core]
|
ext_modules=[deluge_core]
|
||||||
)
|
)
|
||||||
|
|
40
test.py
40
test.py
|
@ -1,40 +0,0 @@
|
||||||
#/*
|
|
||||||
#Copyright: A. Zakai ('Kripken') <kripkensteiner@gmail.com> http://6thsenseless.blogspot.com
|
|
||||||
#
|
|
||||||
#2006-15-9
|
|
||||||
#
|
|
||||||
#This code is licensed under the terms of the GNU General Public License (GPL),
|
|
||||||
#version 2 or above; See /usr/share/common-licenses/GPL , or see
|
|
||||||
#http://www.fsf.org/licensing/licenses/gpl.html
|
|
||||||
#*/
|
|
||||||
|
|
||||||
|
|
||||||
import deluge
|
|
||||||
from time import sleep
|
|
||||||
import os
|
|
||||||
|
|
||||||
manager = deluge.Manager("DL", "0500", "deluge - testing only",
|
|
||||||
os.path.expanduser("~") + "/Temp")# blank_slate=True)
|
|
||||||
|
|
||||||
#manager.set_pref('max_upload_rate', 6*1024)
|
|
||||||
|
|
||||||
##my_torrent = manager.add_torrent("ubuntu.iso.torrent", ".", True)
|
|
||||||
|
|
||||||
##print "Unique ID:", my_torrent
|
|
||||||
|
|
||||||
print "PREFS:", manager.prefs
|
|
||||||
|
|
||||||
try:
|
|
||||||
while True:
|
|
||||||
print "STATE:", manager.get_state()
|
|
||||||
print "# torrents:", manager.get_num_torrents()
|
|
||||||
for unique_ID in manager.get_unique_IDs():
|
|
||||||
state = manager.get_torrent_state(unique_ID)
|
|
||||||
for key in state.keys():
|
|
||||||
print key, state[key]
|
|
||||||
manager.handle_events()
|
|
||||||
print ""
|
|
||||||
sleep(2)
|
|
||||||
except KeyboardInterrupt:
|
|
||||||
print "Shutting down..."
|
|
||||||
manager.quit()
|
|
Loading…
Add table
Add a link
Reference in a new issue