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

pip install compatible for python modules #239

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SengerM
Copy link
Contributor

@SengerM SengerM commented Oct 16, 2024

  • Python modules are installed using the preferred pip install method.
  • Dependencies are automatically installed by pip.
  • It is possible to install the Python modules within a virtual environment created with python -m venv venv_name (enforced by default in Ubuntu 24.04).
  • Remove the following three deprecation warnings:
    1. DEPRECATION: Loading egg at /home/crazyscientist/.local/lib/python3.12/site-packages/CSXCAD-0.6.2-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330,
    2. DEPRECATION: Loading egg at /home/crazyscientist/.local/lib/python3.12/site-packages/openEMS-0.0.36-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330,
    3. DEPRECATION: Loading egg at /home/crazyscientist/.local/lib/python3.12/site-packages/numpy-2.1.2-py3.12-linux-x86_64.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330.
  • In case of error, installation script fails with meaningful error message and without printing "have fun using openEMS".
  • Makes possible pip -e installation for development in the Python modules.

Tested in Fedora 40, Python 3.12.2. I expect it will work out of the box in any modern Linux system. The pip install method should also work in any other modern system supported by Python, like Apple or Windows.

This PR is connected with:

@SengerM
Copy link
Contributor Author

SengerM commented Nov 4, 2024

Seems to have helped someone, see here in #241 .

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

Successfully merging this pull request may close these issues.

1 participant