Skip to content

[Python] Added build for wheels on Alpine linux - #15016

Merged
merlimat merged 1 commit into
apache:masterfrom
merlimat:python-alpine-build
Apr 4, 2022
Merged

merlimat merged 1 commit into
apache:masterfrom
merlimat:python-alpine-build

Conversation

@merlimat

@merlimat merlimat commented Apr 4, 2022

Copy link
Copy Markdown
Contributor

Motivation

Added wheel files compatible with Alpine Linux as described in https://discuss.python.org/t/pep-656-platform-tag-for-linux-distributions-using-musl/7165

Building Python 3.7, 3.8, 3.9 and 3.10 for both x86_64 and arm64

@github-actions

github-actions Bot commented Apr 4, 2022

Copy link
Copy Markdown

@merlimat:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

1 similar comment
@github-actions

github-actions Bot commented Apr 4, 2022

Copy link
Copy Markdown

@merlimat:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions

github-actions Bot commented Apr 4, 2022

Copy link
Copy Markdown

@merlimat:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@merlimat merlimat added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Apr 4, 2022
@merlimat
merlimat merged commit 72c20be into apache:master Apr 4, 2022
@merlimat
merlimat deleted the python-alpine-build branch April 4, 2022 17:06
Lannnnh pushed a commit to Lannnnh/pulsar that referenced this pull request Apr 6, 2022
@JanVosNL

JanVosNL commented Apr 9, 2022 •

Copy link
Copy Markdown

@merlimat

pulsar-client-cpp and py3-pulsar-client-cpp packages are available on Alpine Linux (Edge repository)

# apk search pulsar-client

py3-pulsar-client-cpp-2.9.2-r0
pulsar-client-cpp-static-2.9.2-r0
pulsar-client-cpp-2.9.2-r0
pulsar-client-cpp-dev-2.9.2-r0
# apk info py3-pulsar-client-cpp

py3-pulsar-client-cpp-2.9.2-r0 description:
Python bindings for Apache Pulsar C++ client
# apk info pulsar-client-cpp

pulsar-client-cpp-2.9.2-r0 description:
Apache Pulsar C++ client
Dockerfile:

FROM alpine:latest
RUN apk add --no-cache \
	-X https://dl-cdn.alpinelinux.org/alpine/edge/main \
	-X https://dl-cdn.alpinelinux.org/alpine/edge/community \
	-X https://dl-cdn.alpinelinux.org/alpine/edge/testing \
	pulsar-client-cpp-dev py3-pulsar-client-cpp py3-six py3-certifi
# docker build -t <image> .
# docker run -it <image>

/ # ldd /usr/lib/libpulsar.so 
	/lib/ld-musl-x86_64.so.1 (0x7f6906c02000)
	libprotobuf.so.29 => /usr/lib/libprotobuf.so.29 (0x7f690666f000)
	libcurl.so.4 => /usr/lib/libcurl.so.4 (0x7f69065f3000)
	libssl.so.1.1 => /lib/libssl.so.1.1 (0x7f6906572000)
	libcrypto.so.1.1 => /lib/libcrypto.so.1.1 (0x7f69062f1000)
	libz.so.1 => /lib/libz.so.1 (0x7f69062d7000)
	libzstd.so.1 => /usr/lib/libzstd.so.1 (0x7f6906259000)
	libsnappy.so.1 => /usr/lib/libsnappy.so.1 (0x7f690624e000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f6906076000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f690605d000)
	libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f6906c02000)
	libnghttp2.so.14 => /usr/lib/libnghttp2.so.14 (0x7f6906038000)
	libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x7f690602c000)
	libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x7f6906009000)
/ # python3

Python 3.10.3 (main, Apr  7 2022, 10:35:47) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pulsar
>>> dir(pulsar)
['AlreadyClosed', 'Authentication', 'AuthenticationAthenz', 'AuthenticationError', 'AuthenticationOauth2', 'AuthenticationTLS', 'AuthenticationToken', 'AuthorizationError', 'BatchingType', 'BrokerMetadataError', 'BrokerPersistenceError', 'ChecksumError', 'Client', 'CompressionType', 'ConnectError', 'Consumer', 'ConsumerAssignError', 'ConsumerBusy', 'ConsumerNotFound', 'ConsumerNotInitialized', 'ConsumerType', 'Context', 'CryptoError', 'CryptoKeyReader', 'CumulativeAcknowledgementNotAllowedError', 'ErrorGettingAuthenticationData', 'Function', 'IdentitySerDe', 'IncompatibleSchema', 'InitialPosition', 'InvalidConfiguration', 'InvalidMessage', 'InvalidTopicName', 'InvalidTxnStatusError', 'InvalidUrl', 'LookupError', 'MemoryBufferIsFull', 'Message', 'MessageBatch', 'MessageId', 'MessageTooBig', 'NotAllowedError', 'NotConnected', 'OperationNotSupported', 'PartitionsRoutingMode', 'PickleSerDe', 'Producer', 'ProducerBlockedQuotaExceededError', 'ProducerBlockedQuotaExceededException', 'ProducerBusy', 'ProducerFenced', 'ProducerNotInitialized', 'ProducerQueueIsFull', 'PulsarException', 'ReadError', 'Reader', 'Result', 'SerDe', 'ServiceUnitNotReady', 'SubscriptionNotFound', 'Timeout', 'TooManyLookupRequestException', 'TopicNotFound', 'TopicTerminated', 'TransactionConflict', 'TransactionCoordinatorNotFoundError', 'TransactionNotFound', 'UnknownError', 'UnsupportedVersionError', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_check_type', '_check_type_or_none', '_listener_wrapper', '_pulsar', '_retype', '_schema', 'certifi', 'exceptions', 'functions', 'logging', 're', 'schema', 'timedelta']
>>> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants