Support bsd in python (#1472)

* Support bsd in python

* Update xmake.lua

Co-authored-by: ruki <waruqi@gmail.com>
pull/1476/head
noeffn 2 years ago committed by GitHub
parent 3a3ee6109e
commit 988ed0ec0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/p/python/xmake.lua

@ -42,11 +42,11 @@ package("python")
set_kind("binary")
end
if is_host("macosx", "linux") then
if is_host("macosx", "linux", "bsd") then
add_deps("openssl", "ca-certificates", {host = true})
end
if is_host("linux") then
if is_host("linux", "bsd") then
add_deps("libffi", "zlib", {host = true})
add_syslinks("util", "pthread", "dl")
end
@ -63,7 +63,7 @@ package("python")
package:addenv("PATH", "Scripts")
end)
on_load("@macosx", "@linux", function (package)
on_load("@macosx", "@linux", "@bsd", function (package)
-- set includedirs
local version = package:version()
@ -112,7 +112,7 @@ package("python")
os.vrunv(python, {"-m", "pip", "install", "wheel"})
end)
on_install("@macosx", "@linux", function (package)
on_install("@macosx", "@bsd", "@linux", function (package)
-- init configs
local configs = {"--enable-ipv6", "--with-ensurepip", "--enable-optimizations"}

Loading…
Cancel
Save