diff --git a/PythonKit.podspec b/PythonKit.podspec new file mode 100644 index 0000000..d609692 --- /dev/null +++ b/PythonKit.podspec @@ -0,0 +1,28 @@ +# Run `pod lib lint PythonKit.podspec' to ensure this is a valid spec. + +Pod::Spec.new do |s| + s.name = 'PythonKit' + s.version = '1.0.1' + s.swift_versions = ['5.3'] + s.summary = '...' + + s.description = <<-DESC + description. + DESC + + s.homepage = 'https://github.com/pvieito/PythonKit.git' + s.license = { :type => 'MIT' } + s.author = { '静静的白色外套' => '296019487@qq.com' } + s.source = { :git => '', :tag => s.version.to_s } + s.social_media_url = '' + + s.swift_version = '5.3' + s.ios.deployment_target = '13.0' + s.tvos.deployment_target = '13.0' + s.macos.deployment_target = '11.0' + s.watchos.deployment_target = '6.0' + + s.source_files = 'PythonKit/**/*.swift' + + +end diff --git a/PythonKit/PythonLibrary.swift b/PythonKit/PythonLibrary.swift index d205717..2229c08 100644 --- a/PythonKit/PythonLibrary.swift +++ b/PythonKit/PythonLibrary.swift @@ -81,7 +81,7 @@ extension PythonLibrary { #if canImport(Darwin) private static var libraryNames = ["Python.framework/Versions/:/Python"] private static var libraryPathExtensions = [""] - private static var librarySearchPaths = ["", "/usr/local/Frameworks/"] + private static var librarySearchPaths = ["", "/usr/local/Frameworks/","/Library/Frameworks/"] private static var libraryVersionSeparator = "." #elseif os(Linux) private static var libraryNames = ["libpython:", "libpython:m"] @@ -270,7 +270,8 @@ extension PythonLibrary { // Methods of `PythonLibrary` used for logging messages. extension PythonLibrary { private static func log(_ message: String) { - guard Environment.loaderLogging.value != nil else { return } + +// guard Environment.loaderLogging.value != nil else { return } fputs(message + "\n", stderr) } }