Ich versuche seid Tagen Cython in Spyder3 zum laufen zu bringen. Klappt bisher nicht.
Mit Mingw hat in Python 3.7 nichts geklappt, also habe ich Visual Studion installiert (für den Compiler)
In foren ließt man überall man soll eine "setup.py" schreiben um compilieren zu können, daher meine setup.py hier:
Code: Alles auswählen
from Cython.Build import cythonize
#from Cython.Distutils import build_ext
#from distutils.extension import Extension
import os
from distutils.core import setup
def compile_pyx(filename):
setup(name=os.path.splitext(filename)[0], ext_modules = cythonize(filename))#, zip_safe=False)
PYX_NAME = "cy_testen.pyx"
compile_pyx(PYX_NAME)
Egal was ich versuche:
Ich bekomme immer
Daher meine Frage:DistutilsArgError: no commands supplied
During handling of the above exception, another exception occurred:
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
Wie kompiliert Ihr erfolgreich euren Python Code in einer .pyx datei, sodass am ende brauchbare extension rauskommt?