@@ -12,7 +12,9 @@ copyright_years = strftime('2001 - %Y')
1212# This gets inserted into the man pages to reflect the month of release.
1313month_year = strftime ('%B %Y' )
1414#
15- # __COPYRIGHT__
15+ # MIT License
16+ #
17+ # Copyright The SCons Foundation
1618#
1719# Permission is hereby granted, free of charge, to any person obtaining
1820# a copy of this software and associated documentation files (the
@@ -36,7 +38,7 @@ month_year = strftime('%B %Y')
3638
3739
3840project = 'scons'
39- default_version = '4.0.1'
41+ default_version = '4.0.1.9998 '
4042copyright = "Copyright (c) %s The SCons Foundation" % copyright_years
4143
4244#
@@ -193,14 +195,21 @@ Export('command_line', 'env', 'whereis', 'revaction')
193195SConscript ('doc/SConscript' )
194196
195197
198+ # Copy manpage's into base dir for inclusign in pypi packages
199+ man_pages = env .Install ("#/" , Glob ("#/build/doc/man/*.1" ))
200+
196201# Build packages for pypi
197- env .Command ('$DISTDIR/SCons-${VERSION}-py3-none-any.whl' , ['setup.cfg' , 'setup.py' , 'SCons/__init__.py' ],
202+ wheel = env .Command ('$DISTDIR/SCons-${VERSION}-py3-none-any.whl' , ['setup.cfg' , 'setup.py' , 'SCons/__init__.py' ]+ man_pages ,
198203 '$PYTHON setup.py bdist_wheel' )
199204
200- env .Command ('$DISTDIR/SCons-${VERSION}.zip' , ['setup.cfg' , 'setup.py' , 'SCons/__init__.py' ],
205+ zip_file = env .Command ('$DISTDIR/SCons-${VERSION}.zip' , ['setup.cfg' , 'setup.py' , 'SCons/__init__.py' ]+ man_pages ,
201206 '$PYTHON setup.py sdist --format=zip' )
202- env .Command ('$DISTDIR/SCons-${VERSION}.tar.gz' , ['setup.cfg' , 'setup.py' , 'SCons/__init__.py' ],
207+ tgz_file = env .Command ('$DISTDIR/SCons-${VERSION}.tar.gz' , ['setup.cfg' , 'setup.py' , 'SCons/__init__.py' ]+ man_pages ,
203208 '$PYTHON setup.py sdist --format=gztar' )
204209
210+ # Now set depends so the above run in a particular order
211+ env .Depends (tgz_file , [zip_file , wheel ])
212+ env .AddPostAction (tgz_file , Delete (man_pages ))
213+
205214# TODO add auto copyright date to README.rst, LICENSE
206215# TODO build API DOCS
0 commit comments