Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (18 sloc) 429 Bytes
#! /usr/bin/env python
import os
def main():
files = [x.strip() for x in os.popen("git ls-files")]
def remove(n):
try:
files.remove(n)
except ValueError:
pass
remove("make-manifest.py")
remove(".gitignore")
files.sort()
f = open("MANIFEST.in", "w")
for x in files:
f.write("include %s\n" % x)
f.close()
if __name__ == '__main__':
main()