This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
/
setup.py
62 lines (49 loc) · 1.85 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- coding: utf-8 *-*
#
# This file is part of Minecraft Backup Manager
#
# Minecraft Backup Manager 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 3 of the License, or
# any later version.
#
# Minecraft Backup Manager 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 Minecraft Backup Manager. If not, see <http://www.gnu.org/licenses/>.
#
# Source: https://github.com/LuqueDaniel/Minecraft_backup.git
# Minecraft Backup Manager
from minecraft_backup import resources
import minecraft_backup
# sys
import sys
# setuptools
from setuptools import setup
from setuptools import find_packages
if sys.platform == 'win32':
NEEDED_MODULES = [("PyQt4",
"http://www.riverbankcomputing.co.uk/software/pyqt/intro"),
('win32con', "http://sourceforge.net/projects/pywin32/files/pywin32/")]
else:
NEEDED_MODULES = [("PyQt4",
"http://www.riverbankcomputing.co.uk/software/pyqt/intro"), ]
# Add image files
resources_files = [('images', [])]
for img in resources.IMAGES.items():
resources_files[0][1].append(img[1])
params = {
'name': minecraft_backup.__prj__,
'version': minecraft_backup.__version__,
'description': minecraft_backup.__docu__,
'author': minecraft_backup.__author__,
'author_email': minecraft_backup.__mail__,
'license': minecraft_backup.__license__,
'include_package_data': True,
'package_data': {'': ['*.png']},
'packages': find_packages() + ['minecraft_backup/images'],
'data_files': resources_files}
setup(**params)