Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14981 > unrolled thread

Python pybuild system & setup.cfg

Started byPreuße, Hilmar <hille42@web.de>
First post2023-03-23 21:50 +0100
Last post2023-03-23 23:10 +0100
Articles 4 — 3 participants

Back to article view | Back to linux.debian.maint.python


Contents

  Python pybuild system & setup.cfg Preuße, Hilmar <hille42@web.de> - 2023-03-23 21:50 +0100
    Re: Python pybuild system & setup.cfg Étienne Mollier <emollier@emlwks999.eu> - 2023-03-23 22:10 +0100
      Re: Python pybuild system & setup.cfg Scott Kitterman <debian@kitterman.com> - 2023-03-23 22:20 +0100
        Re: Python pybuild system & setup.cfg Preuße, Hilmar <hille42@web.de> - 2023-03-23 23:10 +0100

#14981 — Python pybuild system & setup.cfg

FromPreuße, Hilmar <hille42@web.de>
Date2023-03-23 21:50 +0100
SubjectPython pybuild system & setup.cfg
Message-ID<GcA2J-eB5D-3@gated-at.bofh.it>
Hi,

I'm a little bit lost, by building the pssh package. The upstream author
released a new version, which changed the build system. Before I had a
setup.py in the root directory, now there is a pyproject.toml and a
setup.cfg file, the setup.py is gone. The debian/rules file calls the dh
sequencer:

DESTDIR=debian/tmp

%:
         dh $@ --buildsystem=pybuild

The build fails right at the beginning, with:

dh clean --buildsystem=pybuild
    dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:240: python3.11 setup.py clean
python3.11: can't open file '/<<PKGBUILDDIR>>/setup.py': [Errno 2] No
such file or directory
E: pybuild pybuild:388: clean: plugin distutils failed with: exit
code=2: python3.11 setup.py clean

The content of the pyproject.toml is:

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

The build Deps I use until now are:

Build-Depends: debhelper-compat (= 13),
         python3,
         python3-setuptools,
         dh-sequence-python3

I don't know what needs to be changed to convince debhelper to use the
setup.cfg instead of setup.py. My wild guess is that I have to change my
BD's but I don't know what needs to be added/removed.

Thanks for help,
   Hilmar
--
sigfault

[toc] | [next] | [standalone]


#14982

FromÉtienne Mollier <emollier@emlwks999.eu>
Date2023-03-23 22:10 +0100
Message-ID<GcAm5-eBrH-1@gated-at.bofh.it>
In reply to#14981

[Multipart message — attachments visible in raw view] — view raw

Hi Hilmar,

Preuße, Hilmar, on 2023-03-23:
> I'm a little bit lost, by building the pssh package. The upstream author
> released a new version, which changed the build system. Before I had a
> setup.py in the root directory, now there is a pyproject.toml and a
> setup.cfg file, the setup.py is gone. The debian/rules file calls the dh
> sequencer:
> 
> DESTDIR=debian/tmp
> 
> %:
>         dh $@ --buildsystem=pybuild
> 
> The build fails right at the beginning, with:
> 
> dh clean --buildsystem=pybuild
>    dh_auto_clean -O--buildsystem=pybuild
> I: pybuild base:240: python3.11 setup.py clean
> python3.11: can't open file '/<<PKGBUILDDIR>>/setup.py': [Errno 2] No
> such file or directory
> E: pybuild pybuild:388: clean: plugin distutils failed with: exit
> code=2: python3.11 setup.py clean
> 
> The content of the pyproject.toml is:
> 
> [build-system]
> requires = ["setuptools"]
> build-backend = "setuptools.build_meta"
> 
> The build Deps I use until now are:
> 
> Build-Depends: debhelper-compat (= 13),
>         python3,
>         python3-setuptools,
>         dh-sequence-python3
> 
> I don't know what needs to be changed to convince debhelper to use the
> setup.cfg instead of setup.py. My wild guess is that I have to change my
> BD's but I don't know what needs to be added/removed.

offpunk upstream made a similar move recently.  I added the
following packages to build dependencies:
  * flit
  * pybuild-plugin-pyproject

Hope this helps,
-- 
Étienne Mollier <emollier@emlwks999.eu>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/tty1, please excuse my verbosity.

[toc] | [prev] | [next] | [standalone]


#14983

FromScott Kitterman <debian@kitterman.com>
Date2023-03-23 22:20 +0100
Message-ID<GcAvL-eBuX-1@gated-at.bofh.it>
In reply to#14982

[Multipart message — attachments visible in raw view] — view raw

On Thursday, March 23, 2023 5:07:56 PM EDT Étienne Mollier wrote:
> Hi Hilmar,
> 
> Preuße, Hilmar, on 2023-03-23:
> > I'm a little bit lost, by building the pssh package. The upstream author
> > released a new version, which changed the build system. Before I had a
> > setup.py in the root directory, now there is a pyproject.toml and a
> > setup.cfg file, the setup.py is gone. The debian/rules file calls the dh
> > sequencer:
> > 
> > DESTDIR=debian/tmp
> > 
> > %:
> >         dh $@ --buildsystem=pybuild
> > 
> > The build fails right at the beginning, with:
> > 
> > dh clean --buildsystem=pybuild
> > 
> >    dh_auto_clean -O--buildsystem=pybuild
> > 
> > I: pybuild base:240: python3.11 setup.py clean
> > python3.11: can't open file '/<<PKGBUILDDIR>>/setup.py': [Errno 2] No
> > such file or directory
> > E: pybuild pybuild:388: clean: plugin distutils failed with: exit
> > code=2: python3.11 setup.py clean
> > 
> > The content of the pyproject.toml is:
> > 
> > [build-system]
> > requires = ["setuptools"]
> > build-backend = "setuptools.build_meta"
> > 
> > The build Deps I use until now are:
> > 
> > Build-Depends: debhelper-compat (= 13),
> > 
> >         python3,
> >         python3-setuptools,
> >         dh-sequence-python3
> > 
> > I don't know what needs to be changed to convince debhelper to use the
> > setup.cfg instead of setup.py. My wild guess is that I have to change my
> > BD's but I don't know what needs to be added/removed.
> 
> offpunk upstream made a similar move recently.  I added the
> following packages to build dependencies:
>   * flit
>   * pybuild-plugin-pyproject
> 
> Hope this helps,

Since setuptools is the build system identified in pyproject.toml, flit isn't 
needed for this package.  Adding pybuild-plugin-pyproject to build depends 
should be sufficient.

Scott K

[toc] | [prev] | [next] | [standalone]


#14984

FromPreuße, Hilmar <hille42@web.de>
Date2023-03-23 23:10 +0100
Message-ID<GcBi9-eC0I-5@gated-at.bofh.it>
In reply to#14983
On 23.03.2023 22:10, Scott Kitterman wrote:
> On Thursday, March 23, 2023 5:07:56 PM EDT Étienne Mollier wrote:

Hi Étienne, hi Scott,

>> offpunk upstream made a similar move recently.  I added the
>> following packages to build dependencies:
>>    * flit
>>    * pybuild-plugin-pyproject
>>
>> Hope this helps,
>
> Since setuptools is the build system identified in pyproject.toml, flit isn't
> needed for this package.  Adding pybuild-plugin-pyproject to build depends
> should be sufficient.
>
Many thanks" Adding pybuild-plugin-pyproject to the B-D simply solved
the issue.

Hilmar
--
sigfault

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web