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

Creating optional dependencies #60

Open
Martin15135215 opened this issue Dec 31, 2023 · 2 comments
Open

Creating optional dependencies #60

Martin15135215 opened this issue Dec 31, 2023 · 2 comments

Comments

@Martin15135215
Copy link

It is also known as extras

currently, I also use this library to solve truss system like those

I do not require the dependencies, for example the Vis component of this library. Would it be possible to incorporate them as extras?

Thank you very much and have a happy new year.

@jonaslindemann
Copy link
Contributor

I am planning to do this. I have not yet had time. Thanks for the feedback! There is also calfem-python-small.

@Martin15135215
Copy link
Author

Thanks for pointing me to calfem-python-small. I did not know it, since it was not mentioned https://github.com/CALFEM/calfem-python or https://calfem-for-python.readthedocs.io/en/latest/installation.html

I then looked further and found it in the https://github.com/CALFEM/calfem-python/blob/master/setup.py and https://github.com/CALFEM/calfem-python/blob/master/setup-org.py

calfem-python-small has the following dependencies:

install_requires=['numpy', 'visvis', 'matplotlib', 'scipy', 'gmsh', 'tabulate'],

calfem-python has the following dependencies:

install_requires=['numpy', 'visvis', 'pyvtk', 'matplotlib', 'scipy', 'gmsh', 'qtpy', 'vedo', 'tabulate'],

Is the difference just the number of installed dependencies between these two versions?

Here is the link how to do optional dependencies in setup.py

setup(
    name="Package-A",
    ...,
    extras_require={
        "PDF": ["ReportLab>=1.2", "RXP"],
    },
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants