Re: [pygettext] --package-name and --package-version unknown

2023-05-05 Thread c . buhtz
Thanks for the answer. Am 05.05.2023 03:24 schrieb aapost: pygettext is deprecated since xgettext supports python now, so using xgettext is recommended. If this is the official case then it should be mentioned in the python docs. The 3.11 docs still tell about pygettext and xgettext and

[pygettext] --package-name and --package-version unknown

2023-05-04 Thread c . buhtz
Hello, am I right to assume that "pygettext" is part of the official Python3 "package"? So it is OK to aks here? I do use pygettext to handle po and pot files. In the manpage I'm not able to find help about this. I would like to modify the header that pygettext does create in each po-file.

Re: subprocess equivalent for "os.execvp()"?

2023-01-09 Thread c . buhtz
Dear Eryk, Am 08.01.2023 17:22 schrieb Eryk Sun: Avoid using any of the `os.exec*` functions on Windows. There's no support for replacing a Windows process image, so the `exec*()` functions simply spawn a child process and terminate the current one. Thanks for bringing this up. On Python for

Re: What should go to stdout/stderr and why Python logging write everything to stderr?

2023-01-03 Thread c . buhtz
Am 03.01.2023 17:51 schrieb r...@zedat.fu-berlin.de: logging.getLogger().addHandler( logging.StreamHandler( sys.stdout )) But I don't want to make all log levels go to stdout. Just DEBUG and INFO. But this would be a workaround. The main question here is why does Python deciecded to make

Re: pip/setuptools: Entry points not visible from pkexec-root-environment

2022-12-19 Thread c . buhtz
Dear Chris, thanks for asking back and my apologize for being to broad in my way of asking (in a foreign language). Am 19.12.2022 07:40 schrieb Chris Angelico: Hmm, then I'm not sure what you're *losing* here. The problem, as I understand it, is that the scripts are getting installed into

Re: pip/setuptools: Entry points not visible from pkexec-root-environment

2022-12-18 Thread c . buhtz
Dear Barry, thanks for reply and asking back. Am 18.12.2022 22:33 schrieb Barry: Why are asking on this list and discuss.python.org? To be exact I'm asking in the "Packaging" section of "discuss.python.org". To my knowledge that section is the official channel of "pypa/pip" project pointed

Re: pip/setuptools: Entry points not visible from pkexec-root-environment

2022-12-18 Thread c . buhtz
Am 18.12.2022 22:37 schrieb Mats Wichmann: the which command uses your PATH, so I'm not sure you're buying anything new there I'm using which before entering pkexec. ;) I'll show a demonstrator project later. -- https://mail.python.org/mailman/listinfo/python-list

Re: pip/setuptools: Entry points not visible from pkexec-root-environment

2022-12-18 Thread c . buhtz
Dear Chris, thank you for your reply. Am 18.12.2022 20:27 schrieb Chris Angelico: Does it have to be in path? Can't you say /usr/local/bin/entrypointname? Not sure what constitutes an elegant solution here. I asked that myself. My current solution do determine the full path of the

Re: pip/setuptools: Entry points not visible from pkexec-root-environment

2022-12-18 Thread c . buhtz
Dear Gerard, thank you for your reply. Am 18.12.2022 19:45 schrieb Weatherby,Gerard: "sudo python3 -m pip install -e ." You’ve already started down a problematic road. I recommend installing root level Python packages through your system package manager. (apt for debian, or whatever RedHat is

How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread c . buhtz
X-Post: https://stackoverflow.com/q/73814924/4865723 Hello, I'm aware that there is a `logging` package that is more _modern_ then [`syslog`](https://docs.python.org/3/library/syslog.html). But I have old code here to deal with that does use `syslog`. So that question is specific to `syslog`

Re: Which architectures to support in a CI like Travis?

2022-09-19 Thread c . buhtz
Dear Mats, thanks for the reply. Am 19.09.2022 16:10 schrieb Mats Wichmann: Kind of unrelated to the actual question, but if you start doing anything serious under Travis you'll run out of free minutes rather quickly. My project had to just give up on it after they changed their licensing

venv and packages with entry points

2022-09-06 Thread c . buhtz
Hello, I try to get it onto my head how virtual environments (via venv) works when I have packages with "entry points". I can define such entry points in the setup.cfg like this (full example [1]): [options.entry_points] console_scripts = hyperorg = hyperorg.__main__:main When I

PEP about recommended project folder layout

2022-07-26 Thread c . buhtz
Hello, I am not sure if I looked into the correct sources. I was looking in "PEP 609 – Python Packaging Authority (PyPA) Governance" [1] and the "PyPA specifications" [2]. My question in short: Is there an official document (e.g. a PEP) about a recommended layout for project folders.