diff options
author | William Deegan <bill@baddogconsulting.com> | 2020-06-30 15:48:51 -0700 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2020-06-30 15:48:51 -0700 |
commit | 8e18d0c324c2605936198e64d349c89082b1463d (patch) | |
tree | b11c03f2c49c01b1e5287f442b6ae0b26c9f512b | |
parent | 593667ef1cbb49bd7c0344fbc5a060d63b32fa07 (diff) | |
download | scons-git-8e18d0c324c2605936198e64d349c89082b1463d.tar.gz |
Add logic to build wheel and sdist package for pypi
-rw-r--r-- | SConstruct | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct index 579ef23a7..a143c9306 100644 --- a/SConstruct +++ b/SConstruct @@ -194,9 +194,14 @@ Export('command_line', 'env', 'whereis', 'revaction') SConscript('doc/SConscript') -# TODO Need to build packages -# python setup.py bdist_wheel -# python setup.py sdist --formats=gztar,zip +# Build packages for pypi +env.Command('$DISTDIR/SCons-${VERSION}-py3-none-any.whl', ['setup.cfg', 'setup.py', 'SCons/__init__.py'], + '$PYTHON setup.py bdist_wheel') + +env.Command('$DISTDIR/SCons-${VERSION}.zip', ['setup.cfg', 'setup.py', 'SCons/__init__.py'], + '$PYTHON setup.py sdist --format=zip') +env.Command('$DISTDIR/SCons-${VERSION}.tar.bz2', ['setup.cfg', 'setup.py', 'SCons/__init__.py'], + '$PYTHON setup.py sdist --format=bztar') # TODO add auto copyright date to README.rst, LICENSE # TODO build API DOCS |