Skip to content

Commit 0ebe2bf

Browse files
committed
build without debug symbols, don't include source in wheels
1 parent ae3e0df commit 0ebe2bf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ci/docker/manylinux/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM quay.io/pypa/manylinux2010_x86_64
33
ENV OPENSSL openssl-1.1.1g
44
ENV LIBSSH 0.9.6
55
ENV SYSTEM_LIBSSH 1
6+
ENV CFLAGS "-g0 -s"
67

78
RUN yum install zlib-devel cmake3 -y
89

@@ -14,7 +15,7 @@ RUN tar -xzf ${OPENSSL}.tar.gz
1415
# Openssl
1516
RUN cd ${OPENSSL} && \
1617
./config --prefix=/usr --openssldir=/usr/openssl threads shared && \
17-
make -j6 && make install
18+
make -j6 && make install_sw
1819

1920
# Kerberos
2021
RUN cd krb5-1.18.4.tar.gz/krb5-1.18.4/src && \
@@ -26,7 +27,7 @@ RUN cd krb5-1.18.4.tar.gz/krb5-1.18.4/src && \
2627
RUN mkdir -p build_libssh && cd build_libssh && \
2728
cmake3 ../libssh.tar.xz/libssh-${LIBSSH} -DCMAKE_BUILD_TYPE=Release \
2829
-DWITH_GSS_API=ON && \
29-
make -j6 install
30+
make -j6 install/strip
3031

3132
RUN rm -rf ${OPENSSL}* libssh build_libssh krb5-1.18.4.tar.gz
3233

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
]
4848

4949
# _comp_args = ["-ggdb"]
50-
_comp_args = ["-O3"] if not ON_WINDOWS else None
50+
_comp_args = ['-O3', '-g0', '-s'] if not ON_WINDOWS else None
5151
cython_directives = {
5252
'embedsignature': True,
5353
'boundscheck': False,
@@ -124,7 +124,7 @@
124124
'tests', 'tests.*',
125125
'*.tests', '*.tests.*')),
126126
zip_safe=False,
127-
include_package_data=True,
127+
include_package_data=False,
128128
platforms='any',
129129
classifiers=[
130130
'Development Status :: 4 - Beta',

0 commit comments

Comments
 (0)