forked from XuShaohua/bcloud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·43 lines (34 loc) · 1.1 KB
/
setup.py
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
#!/usr/bin/env python3
# Copyright (C) 2014 LiuLang <[email protected]>
# Use of this source code is governed by GPLv3 license that can be found
# in the LICENSE file.
from distutils.core import setup
from distutils.core import Command
from distutils.command.clean import clean as distutils_clean
from distutils.command.sdist import sdist as distutils_sdist
import glob
import os
import shutil
from bcloud import Config
def build_data_files():
data_files = []
for dir, dirs, files in os.walk('share'):
target = dir
if files:
files = [os.path.join(dir, f) for f in files]
data_files.append((target, files))
return data_files
scripts = ['bcloud-gui', ]
if __name__ == '__main__':
setup(
name = Config.NAME,
description = 'Baidu Pan client for Linux Desktop users',
version = Config.VERSION,
license = 'GPLv3',
url = Config.HOMEPAGE,
author = 'LiuLang',
author_email = '[email protected]',
packages = ['bcloud', ],
scripts = scripts,
data_files = build_data_files(),
)