scientific-python / lazy-loader

Populate library namespace without incurring immediate import costs
BSD 3-Clause "New" or "Revised" License
118 stars 19 forks source link

Help to packaging Debian package #35

Closed yuzibo closed 1 year ago

yuzibo commented 1 year ago

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 commented 1 year ago

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

yuzibo commented 1 year ago

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

yuzibo commented 1 year ago

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 commented 1 year ago

You can use stefanv at berkeley.edu, thanks.

yuzibo commented 1 year ago

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

stefanv commented 1 year ago

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

yuzibo commented 1 year ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

你修好了吗?

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

thanks,i am already fix it