| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import os |
| 4 | import setuptools |
| 5 | import sys |
| 6 | |
| 7 | build_dir = os.path.dirname(__file__) |
| 8 | project_dir = os.path.dirname(build_dir) |
| 9 | |
| 10 | # Note that we merely supplement argv, we don't rewrite it, so the user |
| 11 | # can put "upload" at the end to send the results to PyPI. |
| 12 | |
| 13 | sys.argv[1:1] = ['sdist', 'bdist_wheel'] |
| 14 | sys.path[0:0] = [project_dir] |
| 15 | |
| 16 | import setup |