graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.87k stars 1.26k forks source link

[BUG] Source install includes .egg directories #2823

Open itinneed2022 opened 8 months ago

itinneed2022 commented 8 months ago

Describe the bug When trying to install from source, the path is extended to include ".egg" directories in /opt/graphite/webapp, /opt/graphite/lib

To Reproduce I installed the requirements using the requirements.txt file: (/usr/local/src/carbon -or- graphite) python39 -m pip install -r requirements.txt And then installed carbon: python39 setup.py install

Expected behavior /opt/graphite/webapp/ should contain content and graphite directories This will let me run the django-admin migrate steps later in setup.

Screenshots image

Environment (please complete the following information):

Additional context I installed Django 4.2.7, using the requirements file. But I'm seeing Django 3.2.23 in the default directory: /app/graphite/webapp/Django-3.2.23-py3.9.egg/

itinneed2022 commented 8 months ago

Note, I just switched to Graphite 1.1.0, and the directory issue is gone.

deniszh commented 8 months ago

Yes, confirming that. For proper installation with recent python you need to call it like

python39 setup.py install --single-version-externally-managed --root=/
stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.