Skip to content

Commit 8a19d7e

Browse files
committed
build: Include only needed libuv files into distribution; fix build
1 parent d9aa795 commit 8a19d7e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
recursive-include tests *.py
22
recursive-include uvloop *.pyx *.pxd *.pxi *.py
3-
recursive-include vendor/libuv *.*
3+
recursive-include vendor/libuv *.c *.h LICENSE *.sh *.am *.ac *.m4 *.pc.in
44
include LICENSE README.rst Makefile

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ def build_libuv(self):
2525
' ' +
2626
env.get('ARCHFLAGS', ''))
2727

28-
subprocess.run(['sh', 'autogen.sh'], cwd=LIBUV_DIR, env=env)
29-
subprocess.run(['./configure'], cwd=LIBUV_DIR, env=env)
30-
subprocess.run(['make', '-j4'], cwd=LIBUV_DIR, env=env)
28+
j_flag = '-j{}'.format(os.cpu_count() or 1)
29+
30+
subprocess.run(['/bin/sh', 'autogen.sh'], cwd=LIBUV_DIR, env=env,
31+
check=True)
32+
subprocess.run(['./configure'], cwd=LIBUV_DIR, env=env, check=True)
33+
subprocess.run(['make', j_flag], cwd=LIBUV_DIR, env=env, check=True)
3134

3235
def build_extensions(self):
3336
libuv_lib = os.path.join(LIBUV_DIR, '.libs', 'libuv.a')

0 commit comments

Comments
 (0)