mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
deb2d754e7
I'd like to use this in screenshots, but the os.environ makes it a bit tricky to do.
23 lines
442 B
Python
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"],
|
|
)
|