Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Help to packaging Debian package #35

Closed
yuzibo opened this issue Oct 15, 2022 · 11 comments
Closed

Help to packaging Debian package #35

yuzibo opened this issue Oct 15, 2022 · 11 comments

Comments

@yuzibo
Copy link

yuzibo commented Oct 15, 2022

Hi, I am packaging the project into Debian, But I have unclear to me.(I am new to Debian also;))

Generally, the python project has its own setup.py, then On Debian it can be used pybuild, like:

# cat debian/rule
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with python3 --buildsystem=pybuild

But this is not work for the project. The log is:

Command: dpkg-buildpackage --sanitize-env -us -uc -rfakeroot
dpkg-buildpackage: info: source package lazy-loader
dpkg-buildpackage: info: source version 0.1-1
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by vimer <tsu.yubo@gmail.com>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
        install -d /<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home
        pybuild --clean -i python{version} -p 3.10
E: pybuild pybuild:127: cannot detect build system, please use --system option or set PYBUILD_SYSTEM env. variable
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.10 returned exit code 11
make: *** [debian/rules:9: clean] Error 25
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2

But I can install it with pip install -U lazy_loader.
Can you tell me what build system was used in the project? Maybe I haven't learned it yet.
Thanks in advance

@stefanv
Copy link
Member

stefanv commented Oct 15, 2022

We are using pyproject.toml. Please see https://manpages.debian.org/unstable/dh-python/pybuild.1.en.html#flit_plugin

@yuzibo
Copy link
Author

yuzibo commented Oct 15, 2022

@stefanv thanks. right, it can be built now.:)
will close this until finishing the work.

@yuzibo
Copy link
Author

yuzibo commented Oct 15, 2022

hmm, Can I get your mail address? The d/copyright need author of the project info. Certainly, I listed Scientific Python Developers in here, But I guess this is not enough.

You can email me tsu.yubo@gmail.com with privately if you want :)

@stefanv
Copy link
Member

stefanv commented Oct 15, 2022

You can use stefanv at berkeley.edu, thanks.

@yuzibo
Copy link
Author

yuzibo commented Oct 31, 2022

hi, @stefanv
many thanks for your help.
The package has been entered into unstable on Debian.
thanks again~

@stefanv
Copy link
Member

stefanv commented Mar 12, 2023

We now have tagged releases on GitHub, which should be helpful to Debian as well.

@yuzibo
Copy link
Author

yuzibo commented Mar 13, 2023

Oh,sorry, I forget to close the issue when I have done work.:(

We now have tagged releases on GitHub, which should be helpful to Debian as well.

Thanks again here.:)

@78w
Copy link

78w commented Nov 11, 2023

We are using pyproject.toml. Please see https://manpages.debian.org/unstable/dh-python/pybuild.1.en.html#flit_plugin我们正在使用 pyproject.toml。请参阅 https://manpages.debian.org/unstable/dh-python/pybuild.1.en.html#flit_plugin

hello,I'm experiencing this issue, how can I fix it?

@78w
Copy link

78w commented Nov 11, 2023

hi, @stefanv, 你好, , many thanks for your help.非常感谢您的帮助。 The package has been entered into unstable on Debian. 该软件包已在 Debian 上进入不稳定状态。 thanks again~ 再次感谢~

do you had fix it?

@yuzibo
Copy link
Author

yuzibo commented Nov 13, 2023

do you had fix it?

Not sure what happened around you, but hope this helps:
https://salsa.debian.org/python-team/packages/lazy-loader

@78w
Copy link

78w commented Nov 14, 2023

你修好了吗?

不知道你周围发生了什么,但希望这会有所帮助:https://salsa.debian.org/python-team/packages/lazy-loader

thanks,i am already fix it

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants