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


Groups > de.comp.lang.python > #5728

Re: [Python-de] develop/editable-mode und "flaches" Package in "src"

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Julian Gethmann <mail.python.org@gethmann.org>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] develop/editable-mode und "flaches" Package in "src"
Date Fri, 5 Mar 2021 16:11:11 +0100
Lines 43
Message-ID <mailman.57.1614957077.3067.python-de@python.org> (permalink)
References <88603586-03f4-2c50-4bd8-f53523dbb3bb@crazy-compilers.com> <1cf8b220-5b5d-7162-edb9-c256a3d61a68@gethmann.org> <ccb4f142-411f-be41-6ecd-fd325c5ef00b@crazy-compilers.com> <411e264d-3011-1438-aea6-c149a72b7db8@gethmann.org> <ff4a1534-d241-134d-070e-4f8695e5f540@crazy-compilers.com> <cd61e469-a70d-56ec-c8fa-492a6e8f22b3@gethmann.org> <96d0c9f4-baf1-7ab2-c84b-bba3baa17fa6@crazy-compilers.com> <a8016fe9-49e2-b585-1da2-8365d5b0aa93@gethmann.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de 98cdgYVuTonKcuVZtwGcxgHk+j7sNxuY1J9sIhVuwzsg==
Return-Path <mail.python.org@gethmann.org>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
Authentication-Results mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0
In-Reply-To <96d0c9f4-baf1-7ab2-c84b-bba3baa17fa6@crazy-compilers.com>
Content-Language en-US
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.34
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <https://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <a8016fe9-49e2-b585-1da2-8365d5b0aa93@gethmann.org>
X-Mailman-Original-References <88603586-03f4-2c50-4bd8-f53523dbb3bb@crazy-compilers.com> <1cf8b220-5b5d-7162-edb9-c256a3d61a68@gethmann.org> <ccb4f142-411f-be41-6ecd-fd325c5ef00b@crazy-compilers.com> <411e264d-3011-1438-aea6-c149a72b7db8@gethmann.org> <ff4a1534-d241-134d-070e-4f8695e5f540@crazy-compilers.com> <cd61e469-a70d-56ec-c8fa-492a6e8f22b3@gethmann.org> <96d0c9f4-baf1-7ab2-c84b-bba3baa17fa6@crazy-compilers.com>
Xref csiph.com de.comp.lang.python:5728

Show key headers only | View raw


> Außerdem sogt ""packages = country_order" dafür, dass das Paket eben 
> *nicht* trytond.modules.country_order (also qaulifiziert) heißt, sonder 
> nur "country_order".
Ja, das stimmt. Entschuldigung, das habe ich vorhin nicht getestet, 
sondern nur auf die Struktur geachtet,
sodass sich in dem von mir beschriebenen Fall nur folgendes Verhalten 
zeigt, das aber ja nicht das gewünschte ist:
python -m pip install -e . -> ok
python -c "import country_order" -> ok
python -c "import trytond.modules.country_order" -> ImportError

(und wenn ich `packages: trytond.modules.country_order` setzte, 
scheitert pip install -e .)

 > Kannst Du bitte nochmal genau schrieben, was Du da gemacht 
hast?Auszug aus der setup.cfg:
[metadata]
name = trytond.modules.country_order
[options]
# Hier hast du recht s.u.
packages = country_order
package_dir =
     =src
[options.packages.find]
where = src

Meine Verzeichnisstruktur:
├── setup.cfg
├── setup.py
├── src
│   ├── country_order
│   │   └── __init__.py
│   └── trytond.modules.country_order.egg-info <-- wird erst durch pip 
erzeugt
 > "packages = country_order", "src/mein_test_name" und
 > "trytond.modules.country_order.egg-info" passen m.E.  nicht 
zusammen.mein_test_name sollte hier auch country_order sein, wobei ich 
es erst überall mit meinem namen hatte, sorry.

Entschuldigt bitte die Verwirrung.

Julian

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] develop/editable-mode und "flaches" Package in "src" Julian Gethmann <mail.python.org@gethmann.org> - 2021-03-05 16:11 +0100

csiph-web