~gary/zc.buildout/betafix2

« back to all changes in this revision

Viewing changes to zc.recipe.egg_/src/zc/recipe/egg/README.txt

  • Committer: gotcha
  • Date: 2010-04-16 08:10:55 UTC
  • Revision ID: svn-v4:62d5b8a3-27da-0310-9561-8e5933582275:zc.buildout/trunk:110953
Warning for wrong script name

Warning when a script name passed in 'scripts' argument of easy_install.scripts
is not defined in an entry point.

Show diffs side-by-side

added added

removed removed

Lines of Context:
344
344
    -  buildout
345
345
    -  foo
346
346
 
 
347
If a wrong script name is provided, buildout tells about it:
 
348
 
 
349
    >>> write(sample_buildout, 'buildout.cfg',
 
350
    ... """
 
351
    ... [buildout]
 
352
    ... parts = demo
 
353
    ...
 
354
    ... [demo]
 
355
    ... recipe = zc.recipe.egg
 
356
    ... find-links = %(server)s
 
357
    ... index = %(server)s/index
 
358
    ... scripts = undefined
 
359
    ... """ % dict(server=link_server))
 
360
 
 
361
    >>> print system(buildout),
 
362
    Uninstalling demo.
 
363
    Installing demo.
 
364
    Could not generate script 'undefined' as it is not defined in the target egg.
 
365
 
 
366
    >>> ls(sample_buildout, 'bin')
 
367
    -  buildout
 
368
 
 
369
    >>> write(sample_buildout, 'buildout.cfg',
 
370
    ... """
 
371
    ... [buildout]
 
372
    ... parts = demo
 
373
    ...
 
374
    ... [demo]
 
375
    ... recipe = zc.recipe.egg
 
376
    ... find-links = %(server)s
 
377
    ... index = %(server)s/index
 
378
    ... scripts = foo=undefined
 
379
    ... """ % dict(server=link_server))
 
380
 
 
381
    >>> print system(buildout),
 
382
    Uninstalling demo.
 
383
    Installing demo.
 
384
    Could not generate script 'foo' as script 'undefined' is not defined in the target egg.
 
385
 
 
386
    >>> ls(sample_buildout, 'bin')
 
387
    -  buildout
 
388
 
347
389
Specifying extra script paths
348
390
-----------------------------
349
391