Build: Merge setup_nbt.py into setup.py.
Now you can run `setup.py build_ext --inplace` to build _nbt for testing.
This commit is contained in:
parent
7b3a5995b2
commit
c62bc969d3
14
setup.py
14
setup.py
@ -1,12 +1,19 @@
|
||||
from setuptools import setup
|
||||
from setuptools.extension import Extension
|
||||
from Cython.Distutils import build_ext
|
||||
|
||||
version = '1.0'
|
||||
import numpy
|
||||
|
||||
version = '0.1'
|
||||
|
||||
install_requires = [
|
||||
# -*- Extra requirements: -*-
|
||||
"numpy",
|
||||
"pyyaml",
|
||||
]
|
||||
|
||||
ext_modules = [Extension("_nbt", ["_nbt.pyx"])]
|
||||
|
||||
setup(name='pymclevel',
|
||||
version=version,
|
||||
description="Python library for reading Minecraft levels",
|
||||
@ -25,13 +32,16 @@ setup(name='pymclevel',
|
||||
keywords='minecraft',
|
||||
author='David Vierra',
|
||||
author_email='codewarrior0@gmail.com',
|
||||
url='https://github.com/codewarrior0/pymclevel',
|
||||
url='https://github.com/mcedit/pymclevel',
|
||||
license='MIT License',
|
||||
package_dir={'pymclevel': '.'},
|
||||
packages=["pymclevel"],
|
||||
ext_modules=ext_modules,
|
||||
include_dirs=numpy.get_include(),
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=install_requires,
|
||||
cmdclass={'build_ext': build_ext},
|
||||
entry_points="""
|
||||
# -*- Entry points: -*-
|
||||
[console_scripts]
|
||||
|
14
setup_nbt.py
14
setup_nbt.py
@ -1,14 +0,0 @@
|
||||
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
from Cython.Distutils import build_ext
|
||||
|
||||
ext_modules = [Extension("_nbt", ["_nbt.pyx"])]
|
||||
import numpy
|
||||
|
||||
setup(
|
||||
name='NBT library (Cython implementation)',
|
||||
cmdclass={'build_ext': build_ext},
|
||||
ext_modules=ext_modules,
|
||||
include_dirs=numpy.get_include()
|
||||
)
|
Reference in New Issue
Block a user