__main__.py 429 B

1234567891011121314151617
  1. def main():
  2. import sys
  3. # This works both as redirect to use the proper uv package and as smoke test.
  4. print(
  5. "uv_build contains only the PEP 517 build backend for uv and can't be used on the CLI. "
  6. "Use `uv build` or another build frontend instead.",
  7. file=sys.stderr,
  8. )
  9. if "--help" in sys.argv:
  10. sys.exit(0)
  11. else:
  12. sys.exit(1)
  13. if __name__ == "__main__":
  14. main()