yt-project / yt_idv

Interactive volume rendering for yt
Other
9 stars 6 forks source link

Error during `python setup.py` #37

Closed Xarthisius closed 2 years ago

Xarthisius commented 2 years ago
$ pip freeze
Cython==0.29.24
numpy==1.21.2
$ python -c 'import setuptools; print(setuptools.__version__)'
58.2.0

Description

I run into problem described here: https://stackoverflow.com/questions/21594925/error-each-element-of-ext-modules-option-must-be-an-extension-instance-or-2-t

What I Did

python setup.py build
...
error: each element of 'ext_modules' option must be an Extension instance or 2-tuple

Note

diff --git a/setup.py b/setup.py
index 0caccef..14d4795 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 import numpy
-from Cython.Build import cythonize
 from setuptools import Extension, find_packages, setup
+from Cython.Build import cythonize

 setup(
     ext_modules=cythonize("yt_idv/*.pyx"),

fixes it.

chrishavlin commented 2 years ago

thanks! I'll add this fix to #36 as well.