mirror of
https://github.com/mnaberez/py65.git
synced 2025-04-08 19:40:03 +00:00
Properly detect Python version and include data files in manifest.
This commit is contained in:
parent
10e3c0f0e9
commit
515d8b6aac
3
MANIFEST.in
Normal file
3
MANIFEST.in
Normal file
@ -0,0 +1,3 @@
|
||||
include CHANGES
|
||||
include README.markdown
|
||||
include TODO
|
21
setup.py
21
setup.py
@ -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',
|
||||
|
@ -1,2 +0,0 @@
|
||||
0.3
|
||||
|
Loading…
x
Reference in New Issue
Block a user