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())
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] initialization = pytest. main())
recipe = z3c.recipe.scripts
eggs = py.test
...
script-
import pytest
if __name__ == '__main__': sys.exit(