Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5721
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Hartmut Goebel <h.goebel@crazy-compilers.com> |
| 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 | <mailman.49.1614934352.3067.python-de@python.org> (permalink) |
| 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 | <h.goebel@crazy-compilers.com> |
| 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 <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 | <88603586-03f4-2c50-4bd8-f53523dbb3bb@crazy-compilers.com> |
| Xref | csiph.com de.comp.lang.python:5721 |
Show key headers only | View raw
Hallo zusammen,
ich habe eine etwas ungewöhnliche Paketstruktur:
.
├── setup.cfg
├── src
│ └── __init__.py
└── some_release_helper.py
Sowie in setup.cfg definiert:
[options]
packages = trytond.modules.country_order
package_dir =
trytond.modules.country_order=src
Was funktioniert: sdist, bdist und bdist_wheel funktionieren wie
gewünscht: Das Package __init__.py landet in
trytond/modules/country_order/__init__.py. und wenn ich es normal
installiere, landen die Datein dort, wo sie hingehören.
*Was nicht funktioniert*: Wenn ich das Paket mit "pip install -e ."
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önnte?*
Falls sich jemand über das etwas *ungewöhnliche Directory-Layout
wundert*: Tryton-Module haben dieses Layout, nur ohne "src" Directory.
Beispiel: <https://hg.tryton.org/modules/country/file/tip>. Da ich auf
oberster Verzeichnis-Ebene ein paar Module habe, die nicht in das bdist
sollen, möchte ich den eigentlichen Packet-Inhalt in das Verzeichnis
"src" verschieben.
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
Back to de.comp.lang.python | Previous | Next | Find similar
[Python-de] develop/editable-mode und "flaches" Package in "src" Hartmut Goebel <h.goebel@crazy-compilers.com> - 2021-03-05 09:52 +0100
csiph-web