from setuptools import setup from Cython.Build import cythonize setup( ext_modules = cythonize("skydome.py", compiler_directives={"language_level": "3"}) ) #run following #python setup.py build_ext --inplace #and then #python #import skydome