Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c4836579b7 | |||
| ed01c1359f | |||
| 650a155a9a | |||
| 28d23216d1 | |||
| 6468490367 | |||
| 4be9a4cca1 | |||
| 89a619f4b9 | |||
| ac42875cb8 | |||
| 280f63ac35 | |||
| f85839ce0d | |||
| 594273ac16 | |||
| bc57fd3c5f | |||
| a887886318 | |||
| ff4ca0b2e5 |
@@ -7,7 +7,17 @@ jobs:
|
||||
steps:
|
||||
- checkout: self
|
||||
submodules: true
|
||||
|
||||
|
||||
# We need this temporary step to have a consistent version of PowerShell on all images.
|
||||
- task: PowerShell@2
|
||||
displayName: 'Update PowerShell version for macOS'
|
||||
condition: eq(variables['Platform'], 'darwin')
|
||||
inputs:
|
||||
TargetType: inline
|
||||
script: |
|
||||
brew update
|
||||
brew cask upgrade powershell
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Build Python $(VERSION)'
|
||||
inputs:
|
||||
|
||||
@@ -27,6 +27,7 @@ jobs:
|
||||
archiveFilePatterns: '$(Build.BinariesDirectory)/python-$(VERSION)-$(Platform)-$(Architecture).*'
|
||||
destinationFolder: $(Build.BinariesDirectory)
|
||||
cleanDestinationFolder: false
|
||||
overwriteExistingFiles: true
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Apply build artifact to the local machines'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using module "./builders/win-python-builder.psm1"
|
||||
using module "./builders/ubuntu-python-builder.psm1"
|
||||
using module "./builders/macos-python-builder.psm1"
|
||||
using module "./win-python-builder.psm1"
|
||||
using module "./ubuntu-python-builder.psm1"
|
||||
using module "./macos-python-builder.psm1"
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using module "./builders/nix-python-builder.psm1"
|
||||
using module "./nix-python-builder.psm1"
|
||||
|
||||
class macOSPythonBuilder : NixPythonBuilder {
|
||||
<#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using module "./builders/python-builder.psm1"
|
||||
using module "./python-builder.psm1"
|
||||
|
||||
class NixPythonBuilder : PythonBuilder {
|
||||
<#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using module "./builders/nix-python-builder.psm1"
|
||||
using module "./nix-python-builder.psm1"
|
||||
|
||||
class UbuntuPythonBuilder : NixPythonBuilder {
|
||||
<#
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using module "./builders/python-builder.psm1"
|
||||
using module "./python-builder.psm1"
|
||||
|
||||
class WinPythonBuilder : PythonBuilder {
|
||||
<#
|
||||
|
||||
@@ -75,7 +75,7 @@ Describe "Tests" {
|
||||
}
|
||||
|
||||
# Pyinstaller 3.5 does not support Python 3.8.0. Check issue https://github.com/pyinstaller/pyinstaller/issues/4311
|
||||
if ($Version -lt "3.8.0") {
|
||||
if ($Version -lt "3.8.0" -and $Version.Major -ne "2") {
|
||||
It "Validate Pyinstaller" {
|
||||
"pip install pyinstaller" | Should -ReturnZeroExitCode
|
||||
"pyinstaller --onefile ./sources/simple-test.py" | Should -ReturnZeroExitCode
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import distutils.sysconfig
|
||||
from distutils.version import StrictVersion
|
||||
from distutils.version import LooseVersion
|
||||
import sysconfig
|
||||
import sys
|
||||
import platform
|
||||
@@ -43,7 +43,7 @@ else:
|
||||
### Validate macOS
|
||||
if os_type == 'Darwin':
|
||||
### Validate openssl links
|
||||
if StrictVersion(nativeVersion) < StrictVersion("3.7.0"):
|
||||
if LooseVersion(nativeVersion) < LooseVersion("3.7.0"):
|
||||
expected_ldflags = '-L/usr/local/opt/openssl@1.1/lib'
|
||||
ldflags = sysconfig.get_config_var('LDFLAGS')
|
||||
|
||||
|
||||
+332
-191
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user