slpkg/setup.py

53 lines
1.7 KiB
Python
Raw Normal View History

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
2014-07-16 05:21:47 +02:00
from slpkg import __version__, __email__, __author__
2014-07-17 04:46:34 +02:00
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
2014-05-23 07:46:51 +02:00
setup(
2014-06-20 03:43:40 +02:00
name='slpkg',
2014-07-26 06:59:53 +02:00
packages=['slpkg', 'slpkg/sbo', 'slpkg/pkg', 'slpkg/slack'],
2014-07-16 05:21:47 +02:00
scripts=['bin/slpkg'],
version=__version__,
2014-06-20 03:43:40 +02:00
description="Python tool to manage Slackware packages",
keywords=["slackware", "slpkg", "upgrade", "install", "remove",
2014-07-17 04:46:34 +02:00
"view", "slackpkg", "tool", "build"],
2014-07-16 05:21:47 +02:00
author=__author__,
author_email=__email__,
2014-06-20 03:43:40 +02:00
url="https://github.com/dslackw/slpkg",
package_data={"": ["LICENSE", "README.rst", "CHANGELOG"]},
classifiers=[
2014-07-17 04:46:34 +02:00
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
2014-05-23 07:46:51 +02:00
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
2014-07-17 04:46:34 +02:00
"Operating System :: Unix",
2014-05-23 07:46:51 +02:00
"Programming Language :: Python",
2014-07-17 04:46:34 +02:00
"Programming Language :: Python :: 2",
2014-05-23 07:46:51 +02:00
"Programming Language :: Python :: 2.7",
2014-07-17 04:46:34 +02:00
"Programming Language :: Unix Shell",
"Topic :: Software Development :: Build Tools",
"Topic :: System :: Archiving :: Packaging",
"Topic :: System :: Software Distribution",
"Topic :: Utilities"],
2014-05-23 07:46:51 +02:00
long_description=open("README.rst").read()
2014-07-16 05:21:47 +02:00
)
2014-05-23 07:46:51 +02:00
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))
2014-07-31 05:44:04 +02:00