Vinay Sajip avatar Vinay Sajip committed f6b7570 Draft

Closes #32: Default to setting mode bits on POSIX.

Comments (0)

Files changed (3)

       rather than absolute method. This fixes a problem for pip, where
       distlib is kept in the pip.vendor.distlib package.
-- _backports/sysconfig
+- _backport/sysconfig
     - The analogous change to that made for scripts, described above.


         self.add_launchers = add_launchers
         self.force = False
         self.clobber = False
-        self.set_mode = False
+        # It only makes sense to set mode bits on POSIX.
+        self.set_mode = ( == 'posix')
         self.variants = set(('', 'X.Y'))
         self._fileop = fileop or FileOperator(dry_run)


     @unittest.skipUnless( == 'posix', 'Test only valid for POSIX')
     def test_mode(self):
+        self.maker.set_mode = False
         files = self.maker.make('foo = foo:main')
         self.assertEqual(len(files), 2)
         for f in files:
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.