List Info

Thread: Patch for configure on linux




Patch for configure on linux
user name
2008-03-03 11:00:26
Attached is a patch to ease configure on linux, especially
on debian 
systems. With this patch, the configure step automatically
detects all 
the needed directories for a typical ubuntu/debian install.

Thanks,
Josh Nisly

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribepysvn.tigris.org
For additional commands, e-mail: dev-helppysvn.tigris.org
  
Re: Patch for configure on linux
user name
2008-03-09 13:51:33

On Mar 3, 2008, at 17:00, Josh Nisly wrote:

Attached is a patch to ease configure on linux, especially on debian systems. With this patch, the configure step automatically detects all the needed directories for a typical ubuntu/debian install.


Thanks,

Josh Nisly

Index: Source/setup.py

===================================================================

--- Source/setup.py (revision 923)

+++ Source/setup.py (working copy)

-588,7 +588,10

                     'PyCXX include',

                     '--pycxx-dir=',

                     None,

-                    [   '../Import/pycxx-5.4.0'],

+                    [

+                        '../Import/pycxx-5.4.0',

+                        distutils.sysconfig.get_python_inc() # typical Linux

+                    ],

                     'CXX/Version.hxx' )

 

     def find_pycxx_src( self, argv, pycxx_dir ):

-596,7 +599,10

                     'PyCXX Source',

                     '--pycxx-src-dir=',

                     None,

-                    [  '%s/Src' % pycxx_dir],

+                    [

+                        '%s/Src' % pycxx_dir,

+                        '/usr/share/python%s/CXX' % distutils.sysconfig.get_python_version() # typical Linux

+                    ],

                     'cxxsupport.cxx' )

 

     def find_svn_inc( self, argv ):

-625,7 +631,7

                         '/usr/lib',                             # typical Linux

                         '/usr/local/lib64',                     # typical 64bit Linux

                         '/usr/local/lib',                       # typical *BSD

-                        '/usr/pkg/lib',                         # netbsb

+                        '/usr/pkg/lib',                         # netbsd

                     ],

                     self.get_lib_name_for_platform( 'libsvn_client-1' ) )

         # if we are using the Fink SVN then remember this

-647,7 +653,7

             except SetupError:

                 pass

 

-        for apr_ver in ['apr-1', 'apr-0']:

+        for apr_ver in ['apr-1', 'apr-0', 'apr-1.0']:


Better to have apr-1.0 first incase apr-0 is installed.

             try:

                 return self.find_dir( argv,

                     'APR include',


---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribepysvn.tigris.org">dev-unsubscribepysvn.tigris.org

For additional commands, e-mail: dev-helppysvn.tigris.org">dev-helppysvn.tigris.org


Thanks for this improvement. Committed with above change as r925.

Barry


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )