1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-06 20:29:34 +00:00

Properly detect Python version and include data files in manifest.

This commit is contained in:
Mike Naberezny 2009-06-03 17:42:37 -07:00
parent 10e3c0f0e9
commit 515d8b6aac
3 changed files with 11 additions and 15 deletions

3
MANIFEST.in Normal file
View File

@ -0,0 +1,3 @@
include CHANGES
include README.markdown
include TODO

View File

@ -1,22 +1,20 @@
__revision__ = '$Id$'
__version__ = '0.3'
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)
if not maj[0] >= '2' and minor[0] >= '4':
if sys.version_info[:2] < (2, 4):
msg = ("Py65 requires Python 2.4 or better, you are attempting to "
"install it using version %s. Please install with a "
"supported version" % version)
"supported version" % sys.version)
sys.stderr.write(msg)
sys.exit(1)
from setuptools import setup, find_packages
here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
here = os.path.abspath(os.path.dirname(__file__))
DESC = """\
Simulate 6502-based microcomputer systems in Python."""
@ -37,12 +35,9 @@ CLASSIFIERS = [
'Topic :: System :: Hardware'
]
version_txt = os.path.join(here, 'src/py65/version.txt')
py65_version = open(version_txt).read().strip()
dist = setup(
setup(
name = 'py65',
version = py65_version,
version = __version__,
license = 'License :: OSI Approved :: BSD License',
url = 'http://github.com/mnaberez/py65',
download_url = 'http://github.com/mnaberez/py65/downloads',

View File

@ -1,2 +0,0 @@
0.3