slpkg/setup.py

38 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-09 22:08:49 +02:00
name='Slpkg',
2014-05-07 21:25:26 +02:00
py_modules=['slpkg'],
2014-05-09 22:08:49 +02:00
version='1.0.2',
2014-05-07 21:25:26 +02:00
description="Python tool to manage Slackware packages",
keywords=["slpkg", "upgrade", "install", "remove", "view", "slackpkg", "tool"],
author="dslackw",
author_email="d.zlatanidis@gmail.com",
url="https://github.com/dslackw/slpkg",
2014-05-09 22:08:49 +02:00
download_url="https://github.com/dslackw/slpkg/archive/v1.0.2.tar.gz",
2014-05-07 21:25:26 +02:00
scripts=['bin/slpkg'],
package_data={"": ["LICENSE", "README.rst", "CHANGELOG"]},
classifiers=[
"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")
man_page = "man/slpkg.8"
shutil.copy2(man_page, man_path)
2014-05-09 21:54:21 +02:00
os.chmod(man_path + 'slpkg.8.gz', int('444', 8))