mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-20479 don’t leave junk in source directory on configure or make check
- see also ICU-20062 - add a `-B` option to the two python invocations on Windows - set PYTHONDONTWRITEBYTECODE in configure.ac and icudefs.mk.in Co-authored-by: Fredrik Roubert <roubert@google.com>
This commit is contained in:
parent
852b63dd9f
commit
3a28fb7216
5 changed files with 13 additions and 2 deletions
4
icu4c/source/configure
vendored
4
icu4c/source/configure
vendored
|
@ -2603,6 +2603,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||
|
||||
|
||||
|
||||
# Instruct Python to never write any byte code to the ICU source tree.
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
export PYTHONDONTWRITEBYTECODE
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,6 +16,10 @@ AC_INIT([ICU],
|
|||
[International Components for Unicode],
|
||||
[http://icu-project.org])
|
||||
|
||||
# Instruct Python to never write any byte code to the ICU source tree.
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
export PYTHONDONTWRITEBYTECODE
|
||||
|
||||
AC_CONFIG_MACRO_DIR([config/m4])
|
||||
AC_CONFIG_SRCDIR([common/unicode/utypes.h])
|
||||
|
||||
|
|
|
@ -233,7 +233,7 @@ $(TOOLS_TS): "$(ICUTOOLS)\genrb\$(CFGTOOLS)\genrb.exe" "$(ICUTOOLS)\gencnval\$(C
|
|||
|
||||
$(COREDATA_TS):
|
||||
@cd "$(ICUSRCDATA)"
|
||||
py -3 -m buildtool \
|
||||
py -3 -B -m buildtool \
|
||||
--mode windows-exec \
|
||||
--src_dir "$(ICUSRCDATA)" \
|
||||
--tool_dir "$(ICUTOOLS)" \
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
|
||||
SHELL = @SHELL@
|
||||
|
||||
# Instruct Python to never write any byte code to the ICU source tree.
|
||||
export PYTHONDONTWRITEBYTECODE = 1
|
||||
|
||||
# Standard directories
|
||||
|
||||
prefix = @prefix@
|
||||
|
|
2
icu4c/source/test/testdata/testdata.mak
vendored
2
icu4c/source/test/testdata/testdata.mak
vendored
|
@ -35,7 +35,7 @@ CREATE_DIRS :
|
|||
"$(TESTDATAOUT)\testdata.dat" :
|
||||
@echo Building test data
|
||||
set PYTHONPATH=$(ICUSRCDATA);%PYTHONPATH%
|
||||
py -3 -m buildtool \
|
||||
py -3 -B -m buildtool \
|
||||
--mode windows-exec \
|
||||
--tool_dir "$(ICUTOOLS)" \
|
||||
--tool_cfg "$(CFG)" \
|
||||
|
|
Loading…
Add table
Reference in a new issue