Skip to content

Commit

Permalink
no python call
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Nov 14, 2022
1 parent 72104bc commit b28a197
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions recipes/icu/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ def generate(self):
# http://userguide.icu-project.org/icudata
# This is the only directly supported behavior on Windows builds.
tc.configure_args.append(f"--with-data-packaging={self.options.data_packaging}")
env = tc.environment()
msys2_bin = VirtualBuildEnv(self).vars().get("MSYS_BIN")
if msys2_bin:
env.define_path("PYTHON", unix_path(self, os.path.join(msys2_bin, "python")))
tc.generate(env)
tc.generate()

if is_msvc(self):
env = Environment()
Expand All @@ -141,6 +137,14 @@ def generate(self):
def _patch_sources(self):
apply_conandata_patches(self)

# Prevent any call to python during configuration
replace_in_file(
self,
os.path.join(self.source_folder, "source", "configure"),
"if test -z \"$PYTHON\"",
"if true",
)

if self._settings_build.os == "Windows":
# https://unicode-org.atlassian.net/projects/ICU/issues/ICU-20545
makeconv_cpp = os.path.join(self.source_folder, "source", "tools", "makeconv", "makeconv.cpp")
Expand Down

0 comments on commit b28a197

Please sign in to comment.