1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/tests/data/src/chattymodule/setup.py
Pradyun Gedam deb2d754e7
Tweak the chattymodule to not leak potentially information
I'd like to use this in screenshots, but the os.environ makes it a bit
tricky to do.
2022-01-25 01:38:23 +00:00

23 lines
442 B
Python

# A chatty setup.py for testing pip subprocess output handling
import os
import sys
from setuptools import setup
print(f"HELLO FROM CHATTYMODULE {sys.argv[1]}")
print(sys.argv)
print(sys.executable)
print(sys.version)
if "--fail" in sys.argv:
print("I DIE, I DIE")
sys.exit(1)
setup(
name="chattymodule",
version="0.0.1",
description="A sample Python project with a single module",
py_modules=["chattymodule"],
)