-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (26 loc) · 684 Bytes
/
Copy pathsetup.py
File metadata and controls
28 lines (26 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
from setuptools import setup, Extension
install_requires = []
if not os.environ.get("SNAP_BUILD"):
install_requires.extend(["certbot>=1.12.0", "acme>=1.12.0", "josepy>=1.1.0"])
else:
install_requires.append("packaging")
setup(
ext_modules=[
Extension(
"lego_bridge",
[
"certbot_dns_multi/_internal/bridge/main.go",
],
)
],
install_requires=install_requires,
setup_requires=["setuptools-golang"],
build_golang={
"root": (
"github.com/alexzorin/certbot-dns-multi/certbot_dns_multi/"
"_internal/bridge"
),
"strip": False,
},
)