Ronald Oussoren avatar Ronald Oussoren committed a9ae289

Make ' sdist' play nice with SVN

Comments (0)

Files changed (3)

 include ChangeLog *.txt *.html NEWS
-graft Doc 
-graft Examples 
+graft Doc
+graft Examples
 graft Installer?Package
-graft Lib 
-graft MPCompat 
-graft Modules 
+graft Lib
+graft MPCompat
+graft Modules
 graft ProjectBuilder?Extras
-graft Scripts 
-graft libffi-src 
-prune Examples/*/build
-prune Examples/*/*~.nib
-prune Examples/*/*/*~.nib
+graft Scripts
+graft Xcode
+graft libffi-src
+graft setup-lib
 global-exclude .DS_Store
 global-exclude *.pbxuser
-exclude Modules/*/_*
-exclude Modules/*/_*
-exclude Modules/*/_*
-exclude Modules/*/_*
+global-exclude *.pyc


+# distutils doesn't know about subversion and I'm to lazy to reverse engineer
+# distutils in the hope of detecting how to specify that all svn directories
+# should be removed.
+from distutils.command.sdist import sdist as sdist_base
+class cmd_sdist (sdist_base):
+    def prune_file_list(self):
+        sdist_base.prune_file_list(self)
+        self.filelist.exclude_pattern(r'/\.svn/.*$', is_regex=1)
+        self.filelist.exclude_pattern(r'/build/.*$', is_regex=1)
+        self.filelist.exclude_pattern(r'/.*~\.nib/.*$', is_regex=1)
 import os
 from di_test import cmd_test
+from di_sdist import cmd_sdist
 class pyobjc_build_ext (build_ext):
              cmdclass = {
                 'build_ext': pyobjc_build_ext,
                 'test':      cmd_test,
+                'sdist':     cmd_sdist,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.