From 12c974cab3f9be13337bfc4dfa597bde2a1c9438 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Jun 2020 00:46:38 +0800 Subject: [PATCH] improve python2 test --- packages/p/python2/xmake.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/p/python2/xmake.lua b/packages/p/python2/xmake.lua index 8345e8112..c27f17acd 100644 --- a/packages/p/python2/xmake.lua +++ b/packages/p/python2/xmake.lua @@ -137,7 +137,5 @@ package("python2") os.vrun("python2 -c \"import pip\"") os.vrun("python2 -c \"import setuptools\"") os.vrun("python2 -c \"import wheel\"") - if not package:is_plat("windows") then - assert(package:has_cfuncs("PyModule_New", {includes = "Python.h"})) - end + assert(package:has_cfuncs("PyModule_New", {includes = "Python.h"})) end)