A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-June/025370.html below:

[Python-Dev] addressing distutils inability to track file dependencies

[Python-Dev] addressing distutils inability to track file dependenciesAndrew Kuchling akuchlin@mems-exchange.org
Fri, 14 Jun 2002 08:24:36 -0400
On Fri, Jun 14, 2002 at 11:10:46AM +0100, Michael Hudson wrote:
>Yeah, this area sucks.  It interacts v. badly with umask, too.  Maybe
>I'll work on this bug instead on my next train journey... installing
>shared libraries with something like copy_tree is gross.

Out of curiosity, why?  

I've had the patch below sitting in my copy of the tree forever, but
haven't gotten around to checking whether it fixes the umask-related
bug: I think it should, though.

Index: install_lib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/install_lib.py,vretrieving revision 1.40
diff -u -r1.40 install_lib.py
--- install_lib.py      4 Jun 2002 20:14:43 -0000       1.40
+++ install_lib.py      14 Jun 2002 12:05:30 -0000
@@ -106,7 +106,8 @@

     def install (self):
         if os.path.isdir(self.build_dir):
-            outfiles = self.copy_tree(self.build_dir, self.install_dir)
+            outfiles = self.copy_tree(self.build_dir, self.install_dir,
+                                      preserve_mode=1)
         else:
             self.warn("'%s' does not exist -- no Python modules to install" %
                       self.build_dir)

--amk




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4