소스 검색

Support bsd in python (#1472)

* Support bsd in python

* Update xmake.lua

Co-authored-by: ruki <[email protected]>
noeffn 3 년 전
부모
커밋
988ed0ec0b
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      packages/p/python/xmake.lua

+ 4 - 4
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"}