##// END OF EJS Templates
Add support for commit information in auto-generated archives....
Fernando Perez -
Show More
@@ -0,0 +1,1 b''
1 IPython/.git_commit_info.ini export-subst
@@ -0,0 +1,9 b''
1 # This is an ini file that may contain information about the code state
2 [commit hash]
3
4 # The line below may contain a valid hash if it has been substituted during
5 # 'git archive'
6 archive_subst_hash=$Format:%h$
7
8 # This line may be modified by the install process
9 install_hash=
@@ -18,6 +18,7 b' graft IPython/scripts'
18 18 graft IPython/testing
19 19 graft IPython/utils
20 20
21 include IPython/.git_commit_info.ini
21 22
22 23 graft docs
23 24 exclude docs/\#*
@@ -6,12 +6,16 b' Under Posix environments it works like a typical setup.py script.'
6 6 Under Windows, the command sdist is not supported, since IPython
7 7 requires utilities which are not available under Windows."""
8 8
9 #-------------------------------------------------------------------------------
10 # Copyright (C) 2008 The IPython Development Team
9 #-----------------------------------------------------------------------------
10 # Copyright (c) 2008-2010, IPython Development Team.
11 # Copyright (c) 2001-2007, Fernando Perez <fernando.perez@colorado.edu>
12 # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>
13 # Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>
11 14 #
12 # Distributed under the terms of the BSD License. The full license is in
13 # the file COPYING, distributed as part of this software.
14 #-------------------------------------------------------------------------------
15 # Distributed under the terms of the Modified BSD License.
16 #
17 # The full license is in the file COPYING.txt, distributed with this software.
18 #-----------------------------------------------------------------------------
15 19
16 20 #-----------------------------------------------------------------------------
17 21 # Minimal Python version sanity check
@@ -55,7 +59,8 b' from setupbase import ('
55 59 find_package_data,
56 60 find_scripts,
57 61 find_data_files,
58 check_for_dependencies
62 check_for_dependencies,
63 record_commit_info,
59 64 )
60 65
61 66 isfile = os.path.isfile
@@ -239,6 +244,7 b' else:'
239 244 # Do the actual setup now
240 245 #---------------------------------------------------------------------------
241 246
247 setup_args['cmdclass'] = {'build_py': record_commit_info('IPython')}
242 248 setup_args['packages'] = packages
243 249 setup_args['package_data'] = package_data
244 250 setup_args['scripts'] = scripts
@@ -9,7 +9,7 b' import shutil'
9 9
10 10 from toollib import *
11 11
12 tag = commands.getoutput('git describe')
12 tag = commands.getoutput('git describe --tags')
13 13 base_name = 'ipython-%s' % tag
14 14 tar_name = '%s.tgz' % base_name
15 15
General Comments 0
You need to be logged in to leave comments. Login now