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


Groups > de.comp.lang.python > #4902 > unrolled thread

[Python-de] Entrypoint Spezifikation : String oder Dict und wie beides?

Started by"Dr. Volker Jaenisch" <volker.jaenisch@inqbus.de>
First post2017-09-07 23:15 +0200
Last post2017-09-07 23:15 +0200
Articles 1 — 1 participant

Back to article view | Back to de.comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [Python-de] Entrypoint Spezifikation : String oder Dict und wie beides? "Dr. Volker Jaenisch" <volker.jaenisch@inqbus.de> - 2017-09-07 23:15 +0200

#4902 — [Python-de] Entrypoint Spezifikation : String oder Dict und wie beides?

From"Dr. Volker Jaenisch" <volker.jaenisch@inqbus.de>
Date2017-09-07 23:15 +0200
Subject[Python-de] Entrypoint Spezifikation : String oder Dict und wie beides?
Message-ID<mailman.1.1504821576.15585.python-de@python.org>
Servus Python Users!

Ich habe das Problem zwei Entry-Point Spezifikationen zusammen in eine
setup.py zu bekommen.

Zum eine habe ich

entry_points="""
[z3c.autoinclude.plugin]
target = my_base
"""

von z3c.autoinclude.plugin .

Dann brauche ich noch ein Console Script z.B. 

    entry_points={
       'console_scripts' : ['bokeh_server = inqbus.bokeh_plone.bokeh.startup:startup_bokeh'],
    }

Wie man schnell sieht ist das eine ein String, das andere ein Dictionary. 

Dieser naive Versuch 
    entry_points={
       'z3c.autoinclude.plugin':  ['[z3c.autoinclude.plugin] target = plone'],
       'console_scripts' : ['bokeh_server = inqbus.bokeh_plone.bokeh.startup:startup_bokeh'],
    }

scheiterte mit

  File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2695, in get_entry_map
    self._get_metadata('entry_points.txt'), self
  File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2425, in parse_map
    for group, lines in data:
  File "/home/graphdemoplone/workspace/plone_bokeh/zeocluster/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3030, in split_sections
    raise ValueError("Invalid section heading", line)
ValueError: ('Invalid section heading', '[z3c.autoinclude.plugin] target = plone')

Leider gibt die Dokumentation zu pkg-Ressouces also setuptools zu diesem Thema wenig her.

Für jede Hilfe dankbar,

der Volker
 

-- 
=========================================================
   inqbus Scientific Computing    Dr.  Volker Jaenisch
   Richard-Strauss-Straße 1       +49(08861) 690 474 0
   86956 Schongau-West            http://www.inqbus.de
=========================================================

[toc] | [standalone]


Back to top | Article view | de.comp.lang.python


csiph-web