1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-08 19:29:27 +00:00
py65/setup.py

86 lines
2.5 KiB
Python
Raw Normal View History

2008-09-10 02:34:04 +00:00
__revision__ = '$Id$'
import urllib
import urllib2
if not hasattr(urllib2, 'splituser'):
# setuptools wants to import this from urllib2 but it's not
# in there in Python 2.3.3, so we just alias it.
urllib2.splituser = urllib.splituser
from ez_setup import use_setuptools
use_setuptools()
import os
import sys
import string
version, extra = string.split(sys.version, ' ', 1)
maj, minor = string.split(version, '.', 1)
2009-04-05 02:14:53 +00:00
if not maj[0] >= '2' and minor[0] >= '4':
msg = ("Py65 requires Python 2.4 or better, you are attempting to "
2008-09-10 02:34:04 +00:00
"install it using version %s. Please install with a "
"supported version" % version)
from setuptools import setup, find_packages
here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
DESC = """\
Py65 is a simulation of the original NMOS 6502 microprocessor
from MOS Technology, written in Python. """
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: POSIX',
'Programming Language :: Assembly',
'Topic :: Software Development :: Assemblers',
'Topic :: Software Development :: Disassemblers',
'Topic :: Software Development :: Debuggers',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Software Development :: Interpreters',
'Topic :: System :: Emulators',
'Topic :: System :: Hardware'
]
version_txt = os.path.join(here, 'src/py65/version.txt')
py65_version = open(version_txt).read().strip()
dist = setup(
name = 'py65',
version = py65_version,
2008-11-10 03:09:53 +00:00
license = 'License :: OSI Approved :: BSD License',
2008-09-10 02:34:04 +00:00
url = '',
download_url = '',
description = '6502 microprocessor simulation package',
long_description= DESC,
classifiers = CLASSIFIERS,
author = "Mike Naberezny",
author_email = "mike@naberezny.com",
maintainer = "Mike Naberezny",
maintainer_email = "mike@naberezny.com",
package_dir = {'':'src'},
packages = find_packages(os.path.join(here, 'src')),
# put data files in egg 'doc' dir
data_files=[ ('doc', [
2009-02-27 03:17:05 +00:00
'CHANGES',
'README',
'TODO',
2008-09-10 02:34:04 +00:00
]
)],
install_requires = [],
extras_require = {},
tests_require = [],
include_package_data = True,
zip_safe = False,
namespace_packages = ['py65'],
test_suite = "py65.tests",
entry_points = {
'console_scripts': [
'py65mon = py65.monitor:main',
],
},
)