Re: github submodule korrekt einbinden und verwenden
Verfasst: Mittwoch 14. Dezember 2022, 08:03
vielen Dank für Deine Mühe. Ich komme wohl erst am WE dazu.
Seit 2002 Diskussionen rund um die Programmiersprache Python
https://www.python-forum.de/
Code: Alles auswählen
git submodule add https://link/EdApiConnector ./modules/ed-api-connector
Code: Alles auswählen
pip install EDApiConnector
Das ist doch alles eine Katastrophe.Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Code: Alles auswählen
pip install -e ./modules/ed-api-connector
Code: Alles auswählen
dir@thunderjaw:/tmp/ed-test2$ tar xzf ~/Downloads/ed-exploration-planner.tgz
dir@thunderjaw:/tmp/ed-test2$ pipenv --python 3.10
Creating a virtualenv for this project...
Pipfile: /tmp/ed-test2/Pipfile
Using /usr/bin/python3 (3.10.6) to create virtualenv...
⠸ Creating virtual environment...created virtual environment CPython3.10.6.final.0-64 in 175ms
creator CPython3Posix(dest=/home/dir/.local/share/virtualenvs/ed-test2-UY4Av_D_, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/dir/.local/share/virtualenv)
added seed packages: pip==22.3.1, setuptools==65.6.3, wheel==0.38.4
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment!
Virtualenv location: /home/dir/.local/share/virtualenvs/ed-test2-UY4Av_D_
Creating a Pipfile for this project...
dir@thunderjaw:/tmp/ed-test2$ pipenv shell
Launching subshell in virtual environment...
. /home/dir/.local/share/virtualenvs/ed-test2-UY4Av_D_/bin/activate
dir@thunderjaw:/tmp/ed-test2$ . /home/dir/.local/share/virtualenvs/ed-test2-UY4Av_D_/bin/activate
(ed-test2) dir@thunderjaw:/tmp/ed-test2$ cd ed-exploration-planner/
(ed-test2) dir@thunderjaw:/tmp/ed-test2/ed-exploration-planner$ pip install -e modules/ed-api-connector/
Obtaining file:///tmp/ed-test2/ed-exploration-planner/modules/ed-api-connector
Preparing metadata (setup.py) ... done
Installing collected packages: EDApiConnector
Running setup.py develop for EDApiConnector
Successfully installed EDApiConnector-0.0.1
(ed-test2) dir@thunderjaw:/tmp/ed-test2/ed-exploration-planner$ pip install -e .
Obtaining file:///tmp/ed-test2/ed-exploration-planner
Preparing metadata (setup.py) ... done
Installing collected packages: EDExplorationPlanner
Running setup.py develop for EDExplorationPlanner
Successfully installed EDExplorationPlanner-0.0.1
(ed-test2) dir@thunderjaw:/tmp/ed-test2/ed-exploration-planner$ edp
/tmp/ed-test2/ed-exploration-planner/modules/ed-api-connector/src/EDApiConnector/__init__.py