mirror of
https://github.com/mjansson/rpmalloc.git
synced 2026-01-15 19:41:17 +01:00
fix: use shlex than pipes to support python3.13 (#352)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import pipes
|
||||
import shlex
|
||||
import sys
|
||||
|
||||
import platform
|
||||
@@ -82,7 +82,7 @@ class Generator(object):
|
||||
env_keys = set(['CC', 'AR', 'LINK', 'CFLAGS', 'ARFLAGS', 'LINKFLAGS'])
|
||||
configure_env = dict((key, os.environ[key]) for key in os.environ if key in env_keys)
|
||||
if configure_env:
|
||||
config_str = ' '.join([key + '=' + pipes.quote(configure_env[key]) for key in configure_env])
|
||||
config_str = ' '.join([key + '=' + shlex.quote(configure_env[key]) for key in configure_env])
|
||||
self.writer.variable('configure_env', config_str + '$ ')
|
||||
|
||||
if variables is None:
|
||||
|
||||
Reference in New Issue
Block a user