projects
/
python-bulletml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major refactor. Since Python is duck-typed the parser/impl split in the Java BulletML...
[python-bulletml.git]
/
setup.py
diff --git
a/setup.py
b/setup.py
index
ba5af94
..
54a86d1
100755
(executable)
--- a/
setup.py
+++ b/
setup.py
@@
-6,7
+6,15
@@
import shutil
import sys
from distutils.core import setup, Command, Extension
import sys
from distutils.core import setup, Command, Extension
-from Pyrex.Distutils import build_ext
+
+try:
+ from Pyrex.Distutils import build_ext
+except ImportError:
+ from distutils.command.build_ext import build_ext
+ ext_modules = []
+else:
+ ext_modules = [Extension(
+ 'bulletml._collision', [os.path.join('bulletml', '_collision.pyx')])]
from distutils.command.clean import clean as distutils_clean
from distutils.command.sdist import sdist as distutils_sdist
from distutils.command.clean import clean as distutils_clean
from distutils.command.sdist import sdist as distutils_sdist
@@
-116,8
+124,7
@@
if __name__ == "__main__":
packages=["bulletml"],
data_files=glob.glob("examples/*/*.xml") + ["examples/template.xml"],
scripts=["bulletml-runner", "bulletml-to-bulletyaml"],
packages=["bulletml"],
data_files=glob.glob("examples/*/*.xml") + ["examples/template.xml"],
scripts=["bulletml-runner", "bulletml-to-bulletyaml"],
- ext_modules=[
- Extension('bulletml._collision', ['bulletml/_collision.pyx'])],
+ ext_modules=ext_modules,
long_description="""\
BulletML is the Bullet Markup Language. BulletML can describe the
barrage of bullets in shooting games. (For example Progear, Psyvariar,
long_description="""\
BulletML is the Bullet Markup Language. BulletML can describe the
barrage of bullets in shooting games. (For example Progear, Psyvariar,