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

Compatibility with Debian 12 #162

Merged
merged 2 commits into from
Nov 5, 2023
Merged

Compatibility with Debian 12 #162

merged 2 commits into from
Nov 5, 2023

Conversation

davidmehren
Copy link
Contributor

The newer Python on Debian 12 requires the use of the --break-system-packages pip flag to install packages globally.

Debian 12 also does not ship with a cron implementation anymore, so the systemd-cron compatibility package needs to be installed.

@lae
Copy link
Owner

lae commented Oct 6, 2023

Long term I think we want to not pip install uwsgi into /usr/lib.
Instead of --break-system-packages, per latest merge commit can you test netbox_uwsgi_in_venv: true works fine under Debian 12? We could just force installation into the virtualenv for Debian 12 as starters for moving to a virtualenv-only deployment.

@sleinen
Copy link
Contributor

sleinen commented Nov 5, 2023

I have tried @lae's suggestion in comment 1750519004:

Instead of adding --break-system-packages (which does sound scary), I added

netbox_uwsgi_in_venv: true

to @davidmehren's debian-12.yml, and with that I was able to install NetBox just fine on Debian, based on a recently forked NetBox git repo (3.6.5+). (I did have to perform a small piece of Git configuration, for which I'll create a separate issue.)

@lae lae merged commit a9b6147 into lae:master Nov 5, 2023
@lae
Copy link
Owner

lae commented Nov 5, 2023

Superseded by #163.

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.

3 participants