Debian Codegraph @

make_manifest.py

raw symbols SCIP
1 #! /usr/bin/env python
2
3 import os
4
5 def main():
6 files = [x.strip() for x in os.popen("git ls-files")]
7 def remove(n):
8 try:
9 files.remove(n)
10 except ValueError:
11 pass
12
13 remove("make_manifest.py")
14 remove(".gitignore")
15
16 files.sort()
17
18 f = open("MANIFEST.in", "w")
19 for x in files:
20 f.write("include %s\n" % x)
21 f.close()
22
23 if __name__=='__main__':
24 main()