Re: dh_python for single python scripts?

2024-08-16 Thread Philippe Cerfon
Hey again On Fri, Aug 16, 2024 at 6:26 PM Philippe Cerfon wrote: > Still I fail to understand, where that auto-completed my-script-file > comes from in ptpython. > Any ideas what I'm doing wrong? Maybe it's not me doing something wrong. I have: ls -al /usr/bin/*.py lrwxrwxr

Re: dh_python for single python scripts?

2024-08-16 Thread Philippe Cerfon
Hey Stefano. (Thanks, also Andrey). On Fri, Aug 16, 2024 at 9:47 AM Stefano Rivera wrote: > > Is that even intended to work with dh_python? > > dh_python doesn't care what form your python package is in. It just > looks for the metadata in .dist-info / .egg-info. Then there must be something I

dh_python for single python scripts?

2024-08-15 Thread Philippe Cerfon
Hey. I'm already using dh_python for (Python) packages where I have a pyproject.toml with some [project.scripts] section and use python3-setuptools for building, which works quite nicely. Now I do have some standalone python scripts for which it makes not much sense to make them (Python) package

Re: can pip be made using local Debian packages for any dependencies

2023-02-17 Thread Philippe Cerfon
Hey. On Fri, Feb 17, 2023 at 3:35 PM Stefano Rivera wrote: > There is probably some value there. You're safer from a variety of > attacks that *could* theoretically happen on PyPI. Well such language specific package repos (like pypi, npmjs, etc.) have already been (numerous) times been victims

Re: can pip be made using local Debian packages for any dependencies

2023-02-16 Thread Philippe Cerfon
On Wed, Feb 15, 2023 at 9:09 PM Stefano Rivera wrote: > And our selection of Python modules is far from complete. It's not > Debian's intent to provide a mirror of PyPI within Debian. Generally > speaking, we package the modules that we find useful for supporting > building and shipping other pyth

Re: can pip be made using local Debian packages for any dependencies

2023-02-16 Thread Philippe Cerfon
On Wed, Feb 15, 2023 at 5:35 PM Stefano Rivera wrote: > You sure it isn't doing an isolated build? Try --no-build-isolation. I absolutely am not :D (I'm really not a Python expert... or about it's various build systems, pip, etc.). And that seems to have done the trick. And it further seems that

Re: can one change the path of generated entry point console_scripts

2023-02-16 Thread Philippe Cerfon
Hey Stefano On Wed, Feb 15, 2023 at 5:37 PM Stefano Rivera wrote: > Just move it somewhere else later in the build? e.g. after dh_install. I had tried that before, with a debian/mypackage.install file but got an error that it doesn't find the file. Then I realized that I cannot use e.g.: usr/

can one change the path of generated entry point console_scripts

2023-02-13 Thread Philippe Cerfon
Hey. When I use dh-python to build a package that contains a pyproject.toml and uses python3-setuptools for building like e.g. described here https://setuptools.pypa.io/en/latest/userguide/entry_point.html and I use that entry point feature to have a script auto-generated that calls my main():[pr

Re: can pip be made using local Debian packages for any dependencies

2023-02-12 Thread Philippe Cerfon
Hey. On Sun, Feb 12, 2023 at 7:31 PM Donald Stufft wrote: > > I'm pretty sure that most if not all debian packages already ship the > required information for pip to see them as installed, and if they are > installed and they satisfy the dependency constraints that pip has for those > project

Re: can pip be made using local Debian packages for any dependencies

2023-02-12 Thread Philippe Cerfon
On Sun, Feb 12, 2023 at 9:05 AM Ian Norton wrote: > I requested this kind of thing from the pip folks as > https://github.com/pypa/pip/issues/11644 and others have requested > similar, such as https://github.com/pypa/pip/issues/11607 While they wrote it would be discussed, it doesn't really seem

can pip be made using local Debian packages for any dependencies

2023-02-11 Thread Philippe Cerfon
Hey. I hope this is not too off topic. As far as I understand, dh-python, when building packages somehow automatically uses the Debian package names and even prevents e.g. setuptools from downloading any dependencies by setting a (hopefully not running) proxy. I wondered whether it's possible t