-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·45 lines (37 loc) · 1.63 KB
/
setup.py
File metadata and controls
executable file
·45 lines (37 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python
# The contents of this file are subject to the BitTorrent Open Source License
# Version 1.0 (the License). You may not copy or use this file, in either
# source code or executable form, except in compliance with the License. You
# may obtain a copy of the License at http://www.bittorrent.com/license/.
#
# Software distributed under the License is distributed on an AS IS basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
# Written by Bram Cohen and Matt Chisholm
import sys
import os
from distutils.core import setup, Extension
import BitTorrent
import glob
scripts = ["btdownloadgui.py", "btdownloadcurses.py", "btdownloadheadless.py",
"btmaketorrentgui.py", "btmaketorrent.py",
"btlaunchmany.py", "btlaunchmanycurses.py",
"bttrack.py", "btreannounce.py", "btrename.py", "btshowmetainfo.py"]
img_root, doc_root = BitTorrent.calc_unix_dirs()
data_files = [ (img_root , glob.glob('images/*png')+['images/bittorrent.ico',]),
(img_root+'/logo', glob.glob('images/logo/bittorrent_[0-9]*.png') ),
(doc_root , ['credits.txt', 'LICENSE.txt',
'README.txt', 'redirdonate.html'] ),
]
setup(
name = "BitTorrent",
version = BitTorrent.version,
author = "Bram Cohen",
author_email = "bram@bitconjurer.org",
url = "http://bittorrent.com/",
license = "BitTorrent Open Source License",
scripts = scripts,
packages = ["BitTorrent"],
data_files = data_files,
)