@@ -300,19 +300,21 @@ def get_apu_includes():
300
300
if not os .path .exists (PYTHON_CFGDIR ):
301
301
PYTHON_CFGDIR = '%s-%s' % (PYTHON_CFGDIR , sys .platform )
302
302
303
- PYTHON_LDFLAGS = ['-L%s' % PYTHON_CFGDIR ]
303
+ PYTHON_LDFLAGS = []
304
304
if PYTHON_LIBDIR != APXS_LIBDIR :
305
- PYTHON_LDFLAGS .insert ( 0 , '-L%s' % PYTHON_LIBDIR )
305
+ PYTHON_LDFLAGS .append ( '-L%s' % PYTHON_LIBDIR )
306
306
307
307
PYTHON_LDLIBS = ['-lpython%s' % PYTHON_LDVERSION ]
308
308
309
309
if os .path .exists (os .path .join (PYTHON_LIBDIR ,
310
310
'libpython%s.a' % PYTHON_VERSION )):
311
311
PYTHON_LDLIBS = ['-lpython%s' % PYTHON_VERSION ]
312
+ PYTHON_LDFLAGS .append ('-L%s' % PYTHON_CFGDIR )
312
313
313
314
if os .path .exists (os .path .join (PYTHON_CFGDIR ,
314
315
'libpython%s.a' % PYTHON_VERSION )):
315
316
PYTHON_LDLIBS = ['-lpython%s' % PYTHON_VERSION ]
317
+ PYTHON_LDFLAGS .append ('-L%s' % PYTHON_CFGDIR )
316
318
317
319
# Create the final set of compilation flags to be used.
318
320
@@ -326,13 +328,16 @@ def get_apu_includes():
326
328
LD_RUN_PATHS = []
327
329
if os .name != 'nt' :
328
330
LD_RUN_PATH = os .environ .get ('LD_RUN_PATH' , '' )
329
- LD_RUN_PATHS = [PYTHON_CFGDIR ]
331
+ LD_RUN_PATHS = []
332
+ if '-L%s' % PYTHON_CFGDIR in PYTHON_LDFLAGS :
333
+ LD_RUN_PATHS .append (PYTHON_CFGDIR )
330
334
if PYTHON_LIBDIR != APXS_LIBDIR :
331
335
LD_RUN_PATHS .insert (0 , PYTHON_LIBDIR )
332
336
LD_RUN_PATH += ':' + ':' .join (LD_RUN_PATHS )
333
337
LD_RUN_PATH = LD_RUN_PATH .lstrip (':' )
334
338
335
- os .environ ['LD_RUN_PATH' ] = LD_RUN_PATH
339
+ if LD_RUN_PATH :
340
+ os .environ ['LD_RUN_PATH' ] = LD_RUN_PATH
336
341
337
342
# On MacOS X, recent versions of Apple's Apache do not support compiling
338
343
# Apache modules with a target older than 10.8. This is because it
@@ -460,6 +465,6 @@ def _version():
460
465
entry_points = { 'console_scripts' :
461
466
['mod_wsgi-express = mod_wsgi.server:main' ],},
462
467
zip_safe = False ,
463
- install_requires = standalone and ['mod_wsgi-httpd==2.4.54 .1' ] or [],
468
+ install_requires = standalone and ['mod_wsgi-httpd==2.4.62 .1' ] or [],
464
469
python_requires = '>=3.8' ,
465
470
)
0 commit comments