slpkg/setup.py

37 lines
1.2 KiB
Python
Raw Normal View History

2014-05-07 21:25:26 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
2014-05-09 08:27:55 +02:00
import os, sys, shutil
2014-05-07 21:25:26 +02:00
from distutils.core import setup
setup(
2014-05-12 09:14:14 +02:00
name = 'slpkg',
version = "1.0.8",
2014-05-12 06:52:16 +02:00
description = "Python tool to manage Slackware packages",
keywords = ["slackware", "slpkg", "upgrade", "install", "remove",
"view", "slackpkg", "tool"],
2014-05-12 09:14:14 +02:00
author = "dslackw",
author_email = "d.zlatanidis@gmail.com",
url = "https://github.com/dslackw/slpkg",
scripts = ['bin/slpkg'],
package_data = {"": ["LICENSE", "README.rst", "CHANGELOG"]},
classifiers = [
2014-05-07 21:25:26 +02:00
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
2014-05-09 22:08:49 +02:00
"Development Status :: 3 - Alpha",
2014-05-09 08:27:55 +02:00
"Topic :: Intersetup.pynet :: Utilities"],
2014-05-07 21:25:26 +02:00
long_description=open("README.rst").read()
)
2014-05-09 08:27:55 +02:00
if 'install' in sys.argv:
2014-05-09 21:54:21 +02:00
man_path = "/usr/man/man8/"
2014-05-09 08:27:55 +02:00
os.system("mkdir -p {}".format(man_path))
if os.path.exists(man_path):
print("Installing man pages")
2014-05-12 06:52:16 +02:00
man_page = "man/slpkg.8.gz"
2014-05-09 08:27:55 +02:00
shutil.copy2(man_page, man_path)
2014-05-09 22:14:03 +02:00
os.chmod(man_path, int('444', 8))