develop/editable-mode und "flaches" Package in "src"

Hartmut Goebel <[email protected]>
Newsgroups gmane.comp.python.general.german
Organization crazy-compilers.com
Message-ID <[email protected]>
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          | [email protected]               |
| www.crazy-compilers.com | compilers which you thought are impossible |

_______________________________________________
python-de maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/python-de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.