Changeset ee6351d in mod_gnutls for test/required-modules.py
- Timestamp:
- Jan 30, 2020, 7:46:37 AM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- 8b14b13
- Parents:
- 57dec86
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/required-modules.py
r57dec86 ree6351d 4 4 import shutil 5 5 import subprocess 6 from pathlib import Path 6 7 7 8 required_modules = {'logio', 'unixd', 'log_config'} 8 9 9 apache2 = os.environ.get('APACHE2') 10 if not apache2: 11 apache2 = shutil.which('apache2') 12 if not apache2: 13 apache2 = shutil.which('httpd') 10 apache2 = os.environ['APACHE2'] 14 11 15 12 result = subprocess.run([apache2, '-l'], check=True, … … 25 22 for mod in (required_modules - built_in_modules): 26 23 print(f'LoadModule\t{mod}_module\t${{AP_LIBEXECDIR}}/mod_{mod}.so') 24 25 # select mpm module, list is ordered by preference 26 mpm_choices = ['event', 'worker'] 27 mod_dir = Path(os.environ['AP_LIBEXECDIR']) 28 for mpm in mpm_choices: 29 mod = mod_dir.joinpath(f'mod_mpm_{mpm}.so') 30 if mod.exists(): 31 print(f'LoadModule\tmpm_{mpm}_module\t{mod!s}') 32 break
Note: See TracChangeset
for help on using the changeset viewer.