##// 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 graft IPython/testing
18 graft IPython/testing
19 graft IPython/utils
19 graft IPython/utils
20
20
21 include IPython/.git_commit_info.ini
21
22
22 graft docs
23 graft docs
23 exclude docs/\#*
24 exclude docs/\#*
@@ -6,12 +6,16 b' Under Posix environments it works like a typical setup.py script.'
6 Under Windows, the command sdist is not supported, since IPython
6 Under Windows, the command sdist is not supported, since IPython
7 requires utilities which are not available under Windows."""
7 requires utilities which are not available under Windows."""
8
8
9 #-------------------------------------------------------------------------------
9 #-----------------------------------------------------------------------------
10 # Copyright (C) 2008 The IPython Development Team
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
15 # Distributed under the terms of the Modified BSD License.
13 # the file COPYING, distributed as part of this software.
16 #
14 #-------------------------------------------------------------------------------
17 # The full license is in the file COPYING.txt, distributed with this software.
18 #-----------------------------------------------------------------------------
15
19
16 #-----------------------------------------------------------------------------
20 #-----------------------------------------------------------------------------
17 # Minimal Python version sanity check
21 # Minimal Python version sanity check
@@ -55,7 +59,8 b' from setupbase import ('
55 find_package_data,
59 find_package_data,
56 find_scripts,
60 find_scripts,
57 find_data_files,
61 find_data_files,
58 check_for_dependencies
62 check_for_dependencies,
63 record_commit_info,
59 )
64 )
60
65
61 isfile = os.path.isfile
66 isfile = os.path.isfile
@@ -239,6 +244,7 b' else:'
239 # Do the actual setup now
244 # Do the actual setup now
240 #---------------------------------------------------------------------------
245 #---------------------------------------------------------------------------
241
246
247 setup_args['cmdclass'] = {'build_py': record_commit_info('IPython')}
242 setup_args['packages'] = packages
248 setup_args['packages'] = packages
243 setup_args['package_data'] = package_data
249 setup_args['package_data'] = package_data
244 setup_args['scripts'] = scripts
250 setup_args['scripts'] = scripts
@@ -9,7 +9,7 b' import shutil'
9
9
10 from toollib import *
10 from toollib import *
11
11
12 tag = commands.getoutput('git describe')
12 tag = commands.getoutput('git describe --tags')
13 base_name = 'ipython-%s' % tag
13 base_name = 'ipython-%s' % tag
14 tar_name = '%s.tgz' % base_name
14 tar_name = '%s.tgz' % base_name
15
15
General Comments 0
You need to be logged in to leave comments. Login now