Ticket #14804: sage-setup.py

File sage-setup.py, 442 bytes (added by felixs, 8 years ago)
Line 
1#!/usr/bin/env python
2
3# this program is intended to be called instead of "python setup.py" for
4# package installation purposes, see #14804
5#
6# it will finally implement FILELIST and DESTDIR for #14796
7
8import distutils.file_util, os
9
10def myowncopy(s,t):
11        print("copying " + s + " to " + t)
12
13# not yet.
14# distutils.file_util.copy_file=myowncopy
15
16import sys
17sys.argv[0] = "setup.py"
18c = os.getcwd()
19s = os.path.join(c, "setup.py")
20execfile(s)