Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Hartmut Goebel Newsgroups: de.comp.lang.python Subject: [Python-de] develop/editable-mode und "flaches" Package in "src" Date: Fri, 5 Mar 2021 09:52:21 +0100 Organization: crazy-compilers.com Lines: 50 Message-ID: References: <88603586-03f4-2c50-4bd8-f53523dbb3bb@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de hhxuKjHox4i2fParsSrtFgRvypG8REV2kvc/3J7xOuIA== Return-Path: 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 X-Virus-Scanned: amavisd-new at mnet-online.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 Content-Language: de-DE X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Die Deutsche Python Mailingliste List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <88603586-03f4-2c50-4bd8-f53523dbb3bb@crazy-compilers.com> Xref: csiph.com de.comp.lang.python:5721 Hallo zusammen, ich habe eine etwas ungew=C3=B6hnliche Paketstruktur: =2E =E2=94=9C=E2=94=80=E2=94=80 setup.cfg =E2=94=9C=E2=94=80=E2=94=80 src =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 __init__.py =E2=94=94=E2=94=80=E2=94=80 some_release_helper.py Sowie in setup.cfg definiert: [options] packages =3D trytond.modules.country_order package_dir =3D trytond.modules.country_order=3Dsrc Was funktioniert: sdist, bdist und bdist_wheel funktionieren wie=20 gew=C3=BCnscht: Das Package __init__.py landet in=20 trytond/modules/country_order/__init__.py. und wenn ich es normal=20 installiere, landen die Datein dort, wo sie hingeh=C3=B6ren. *Was nicht funktioniert*: Wenn ich das Paket mit "pip install -e ."=20 installiere: * zeigt die "trytond-country-order.egg-link" *nicht* auf das "src" Verzeichnis * wird "trytond_country_order.egg-info" im Projekt-Verzeichnis angelegt= Das resultat ist, dass das Module nicht gefunden wird. *Irgendwelche Ideen, woran das liegen k=C3=B6nnte?* Falls sich jemand =C3=BCber das etwas *ungew=C3=B6hnliche Directory-Layou= t=20 wundert*: Tryton-Module haben dieses Layout, nur ohne "src" Directory.=20 Beispiel: . Da ich auf=20 oberster Verzeichnis-Ebene ein paar Module habe, die nicht in das bdist=20 sollen, m=C3=B6chte ich den eigentlichen Packet-Inhalt in das Verzeichnis= =20 "src" verschieben. --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |