2015-09-26 22:52:54 +00:00
|
|
|
from __future__ import with_statement
|
|
|
|
|
2016-02-13 04:36:33 +00:00
|
|
|
import sys
|
|
|
|
|
2015-09-26 22:52:54 +00:00
|
|
|
try:
|
|
|
|
from setuptools import setup
|
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
|
|
|
|
2016-02-10 19:26:17 +00:00
|
|
|
try:
|
|
|
|
import atrcopy
|
|
|
|
version = atrcopy.__version__
|
|
|
|
except RuntimeError, e:
|
|
|
|
# If numpy isn't present, pull the version number from the error string
|
|
|
|
version = str(e).split()[1]
|
2015-09-26 22:52:54 +00:00
|
|
|
|
|
|
|
classifiers = [
|
|
|
|
"Programming Language :: Python :: 2",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: GNU General Public License (GPL)",
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
"Topic :: Utilities",
|
|
|
|
]
|
|
|
|
|
|
|
|
with open("README.rst", "r") as fp:
|
|
|
|
long_description = fp.read()
|
|
|
|
|
2016-02-12 07:40:16 +00:00
|
|
|
if sys.platform.startswith("win"):
|
|
|
|
scripts = ["scripts/atrcopy.bat"]
|
|
|
|
else:
|
|
|
|
scripts = ["scripts/atrcopy"]
|
|
|
|
|
2015-09-26 22:52:54 +00:00
|
|
|
setup(name="atrcopy",
|
2016-02-10 19:26:17 +00:00
|
|
|
version=version,
|
2015-09-26 22:52:54 +00:00
|
|
|
author="Rob McMullen",
|
|
|
|
author_email="feedback@playermissile.com>",
|
|
|
|
url="https://github.com/robmcmullen/atrcopy",
|
2016-02-13 04:36:33 +00:00
|
|
|
packages=["atrcopy"],
|
2016-02-12 07:40:16 +00:00
|
|
|
scripts=scripts,
|
2015-09-26 22:54:21 +00:00
|
|
|
description="Disk image utilities for Atari 8-bit emulators",
|
2015-09-26 22:52:54 +00:00
|
|
|
long_description=long_description,
|
|
|
|
license="GPL",
|
|
|
|
classifiers=classifiers,
|
2016-02-06 07:08:32 +00:00
|
|
|
install_requires = [
|
|
|
|
'numpy',
|
|
|
|
],
|
2015-09-26 22:52:54 +00:00
|
|
|
)
|