Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python/requirements.txt is missing scikit-image, vispy, ipython, and it shouldn't contain pytest #2912

Open
yurivict opened this issue Sep 22, 2024 · 1 comment
Labels
python Pull requests that update Python code

Comments

@yurivict
Copy link

There are import statements for these in the python code, therefore they should be in requirements.txt

On the other hand, pytest should be in the tests_require clause in setup.py, see here.

Version: 1.29.0

@stevengj
Copy link
Collaborator

stevengj commented Sep 22, 2024

Those aren't requirements for using the meep library itself — they are optional dependencies.

For example IPython is imported in a try block to enable optional features in Jupyter, but the code still works without it:

try:
from IPython.display import display
from ipywidgets import FloatProgress

vispy is used in plot3D, so the rest of meep runs fine without it, and only that function will throw an exception if you don't have vispy installed:

meep/python/visualization.py

Lines 1064 to 1065 in b47d9ba

from vispy.scene.visuals import Box, Mesh
from vispy.scene import SceneCanvas, transforms

scikit-image doesn't seem to be referenced anywhere in Meep, so I'm not sure what you are referring to?

We don't use setup.py — Meep is built with a Makefile.

@stevengj stevengj added the python Pull requests that update Python code label Sep 22, 2024
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

2 participants