forked from Pardus-Linux/zorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·35 lines (28 loc) · 838 Bytes
/
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
#!/usr/bin/python
#-*- coding: utf-8 -*-
import os
from distutils.core import setup
from distutils.command.install import install
import zorg
from zorg import consts
class Install(install):
def run(self):
install.run(self)
if not self.root:
self.root = "/"
target = os.path.join(self.root, consts.config_dir.lstrip("/"))
if not os.path.exists(target):
os.makedirs(target, 0755)
setup(name="zorg",
version=zorg.versionString(),
description="Python Modules for zorg",
license="GNU GPL2",
url="http://www.pardus.org.tr/",
packages = ["zorg"],
scripts = ["zorg-cli", "inf2mondb"],
data_files = [
(consts.data_dir, ["data/DriversDB", "data/MonitorsDB"]),
("/sbin", ["zorg-loadmodule"]),
],
cmdclass = {"install": Install}
)