-
Notifications
You must be signed in to change notification settings - Fork 102
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
--install-layout=deb not recognized #175
Comments
Also having this problem when trying to build with It seems to be caused when the version of python running setuptools is not the system/apt installed version of python installed with the debian-specific patches applied (which are required for Setting This is our name: Build Debian package
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
architecture: x64
- name: Install packaging dependencies
run: |
sudo apt install -y python3 python3-dev python3-pip python3-venv python3-all dh-python debhelper devscripts dput software-properties-common python3-distutils python3-setuptools python3-wheel python3-stdeb
pip3 install --upgrade pip setuptools wheel stdeb
- name: Build Debian/Apt bdist_deb
run: |
python3 setup.py --command-packages=stdeb.command bdist_deb
- name: Install archivebox from deb
run: |
apt install ./deb_dist/archivebox*.deb This fails on However this version which uses only debian-installed python packages works (but is waaay slower): name: Build Debian package
on:
push:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 1
- name: Install packaging dependencies
run: |
sudo apt install -y \
python3 python3-dev python3-pip python3-venv python3-all \
dh-python debhelper devscripts dput software-properties-common \
python3-distutils python3-setuptools python3-wheel python3-stdeb
- name: Build Debian/Apt sdist_dsc
run: |
rm -Rf deb_dist/*
python3 setup.py --command-packages=stdeb.command sdist_dsc
- name: Build Debian/Apt bdist_deb
run: |
python3 setup.py --command-packages=stdeb.command bdist_deb
- name: Install archivebox from deb
run: |
cd deb_dist/
sudo apt install ./archivebox*.deb |
That sounds reasonable since the Debian provided Python package provides that custom option to install Python modules under @maxx-bachurin How did you install the Python version you are using when running into this? |
I have the same issue with the latest
No problems with a previous I'm creating a Debian package in 2 steps like this:
It fails in the second command when this is being executed:
For now, my workaround is to pin the |
downgrade of setuptools doesn't work for me :/ |
I am trying to debianize my python project and get the following error during the build:
I have the following packages installed:
The text was updated successfully, but these errors were encountered: