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


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

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

From "Dr. Volker Jaenisch" <volker.jaenisch@inqbus.de>
Newsgroups de.comp.lang.python
Subject [Python-de] Entrypoint Spezifikation : String oder Dict und wie beides?
Date 2017-09-07 23:15 +0200
Message-ID <mailman.1.1504821576.15585.python-de@python.org> (permalink)
References <f6c2ea8a-1169-6849-ca88-c6f036eeb42a@inqbus.de>

Show all headers | View raw


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
=========================================================

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


Thread

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

csiph-web