Skip to content

Commit ebdb030

Browse files
committed
setup.py: Fix timestamps before building libuv
1 parent dbacc2b commit ebdb030

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ def build_libuv(self):
5050
subprocess.run(['/bin/sh', 'autogen.sh'], cwd=LIBUV_DIR, env=env,
5151
check=True)
5252

53+
# Sometimes pip fails to preserve the timestamps correctly,
54+
# in which case, make will try to run autotools again.
55+
subprocess.run(['touch', 'configure.ac', 'aclocal.m4',
56+
'configure', 'Makefile.am', 'Makefile.in'],
57+
cwd=LIBUV_DIR, env=env, check=True)
58+
5359
subprocess.run(['./configure'], cwd=LIBUV_DIR, env=env, check=True)
5460

5561
c_flag = "CFLAGS={}".format(env['CFLAGS'])

0 commit comments

Comments
 (0)