Created
October 19, 2019 21:17
-
-
Save LordAro/bf339517466314c9fe33077def9fdcff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
from setuptools import Extension, find_packages | |
if os.name == 'nt': | |
from cx_Freeze import setup, Executable | |
else: | |
from setuptools import setup | |
from nml import version_info | |
NML_VERSION = version_info.get_and_write_version() | |
if os.name == 'nt': | |
EXE_PARAM = {'executables': [Executable('nmlc')]} | |
else: | |
EXE_PARAM = {'scripts': ['nmlc']} | |
setup( | |
name='nml', | |
version=NML_VERSION, | |
packages=find_packages(), | |
description='A tool to compile nml files to grf or nfo files', | |
long_description=('A tool to compile nml files to grf and / or nfo files.' | |
'NML is a meta-language that aims to be a lot simpler to learn and use than nfo.'), | |
license='GPL-2.0+', | |
classifiers=['Development Status :: 2 - Pre-Alpha', | |
'Environment :: Console', | |
'Intended Audience :: Developers', | |
'License :: OSI Approved :: GNU General Public License (GPL)', | |
'Operating System :: OS Independent', | |
'Programming Language :: Python :: 3', | |
'Programming Language :: Python :: 3.2', | |
'Programming Language :: Python :: 3.3', | |
'Programming Language :: Python :: 3.4', | |
'Topic :: Software Development :: Compilers', | |
], | |
url='https://github.com/OpenTTD/nml', | |
author='NML Development Team', | |
author_email='nml-team@openttdcoop.org', | |
**EXE_PARAM, | |
ext_modules=[Extension("nml_lz77", ["nml/_lz77.c"], optional=True)], | |
python_requires='>=3.2', | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment