2014-05-23 07:46:51 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2014-06-20 03:43:40 +02:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import shutil
|
2014-05-23 07:46:51 +02:00
|
|
|
|
|
|
|
from distutils.core import setup
|
|
|
|
|
|
|
|
setup(
|
2014-06-20 03:43:40 +02:00
|
|
|
name='slpkg',
|
2014-07-13 16:33:37 +02:00
|
|
|
version="1.5.4",
|
2014-06-20 03:43:40 +02:00
|
|
|
description="Python tool to manage Slackware packages",
|
|
|
|
keywords=["slackware", "slpkg", "upgrade", "install", "remove",
|
|
|
|
"view", "slackpkg", "tool"],
|
|
|
|
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-23 07:46:51 +02:00
|
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
|
|
"Operating System :: POSIX :: Linux",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
"Development Status :: 3 - Alpha",
|
|
|
|
"Topic :: Intersetup.pynet :: Utilities"],
|
|
|
|
long_description=open("README.rst").read()
|
|
|
|
)
|
|
|
|
|
|
|
|
if 'install' in sys.argv:
|
|
|
|
man_path = "/usr/man/man8/"
|
|
|
|
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)
|
|
|
|
os.chmod(man_path, int('444', 8))
|