Comment 3 for bug 164629

Revision history for this message
Jan-Jaap Driessen (janjaapdriessen) wrote :

I ran into this problem when installing py.test with zc.recipe.egg (and z3c.recipe.scripts). A *hack* to achieve the wanted behavior is:

[py.test]
recipe = z3c.recipe.scripts
eggs = py.test
            ...
script-initialization =
  import pytest
  if __name__ == '__main__': sys.exit(pytest.main())