mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
2f957409ad
Add timelib==0.2.4 to req.txt Add check for VC Compiler for python Add installer for VC Compiler
87 lines
2.6 KiB
PowerShell
87 lines
2.6 KiB
PowerShell
Function Get-Settings {
|
|
|
|
[CmdletBinding()]
|
|
Param()
|
|
|
|
Begin
|
|
{Write-Verbose "$($MyInvocation.MyCommand.Name):: Function started"}
|
|
|
|
Process
|
|
{
|
|
Write-Verbose "$($MyInvocation.MyCommand.Name):: Loading Settings"
|
|
|
|
$ini = @{}
|
|
|
|
# Location where the files are kept
|
|
$Settings = @{
|
|
"SaltRepo" = "https://repo.saltstack.com/windows/dependencies"
|
|
"SaltDir" = "C:\salt"
|
|
"PythonDir" = "C:\Python27"
|
|
"ScriptsDir" = "C:\Python27\Scripts"
|
|
"DownloadDir" = "$env:Temp\DevSalt"
|
|
}
|
|
$ini.Add("Settings", $Settings)
|
|
|
|
# Prerequisite software
|
|
$Prerequisites = @{
|
|
"NSIS" = "nsis-3.0b1-setup.exe"
|
|
"VCforPython" = "VCForPython27.msi"
|
|
}
|
|
$ini.Add("Prerequisites", $Prerequisites)
|
|
|
|
# Location of programs on 64 bit Windows
|
|
$64bitPaths = @{
|
|
"NSISDir" = "C:\Program Files (x86)\NSIS"
|
|
"VCforPythonDir" = "C:\Program Files (x86)\Common Files\Microsoft\Visual C++ for Python\9.0"
|
|
}
|
|
$ini.Add("64bitPaths", $64bitPaths)
|
|
|
|
# Location of programs on 32 bit Windows
|
|
$32bitPaths = @{
|
|
"NSISDir" = "C:\Program Files\NSIS"
|
|
}
|
|
$ini.Add("32bitPaths", $32bitPaths)
|
|
|
|
# Filenames for 64 bit Windows
|
|
$64bitPrograms = @{
|
|
"PyCrypto" = "pycrypto-2.6.1-cp27-none-win_amd64.whl"
|
|
"Python" = "python-2.7.11.amd64.msi"
|
|
}
|
|
$ini.Add("64bitPrograms", $64bitPrograms)
|
|
|
|
# Filenames for 32 bit Windows
|
|
$32bitPrograms = @{
|
|
"PyCrypto" = "pycrypto-2.6.1-cp27-none-win32.whl"
|
|
"Python" = "python-2.7.11.msi"
|
|
}
|
|
$ini.Add("32bitPrograms", $32bitPrograms)
|
|
|
|
# CPU Architecture Independent DLL's
|
|
$CommonDLLs = @{
|
|
"libsodium" = "libsodium-13.dll"
|
|
}
|
|
$ini.Add("CommonDLLs", $CommonDLLs)
|
|
|
|
# DLL's for 64 bit Windows
|
|
$64bitDLLs = @{
|
|
"Libeay" = "libeay32.dll"
|
|
"SSLeay" = "ssleay32.dll"
|
|
"OpenSSLLic" = "OpenSSL_License.txt"
|
|
}
|
|
$ini.Add("64bitDLLs", $64bitDLLs)
|
|
|
|
# DLL's for 32 bit Windows
|
|
$32bitDLLs = @{
|
|
"Libeay" = "libeay32.dll"
|
|
"SSLeay" = "ssleay32.dll"
|
|
"OpenSSLLic" = "OpenSSL_License.txt"
|
|
}
|
|
$ini.Add("32bitDLLs", $32bitDLLs)
|
|
|
|
Write-Verbose "$($MyInvocation.MyCommand.Name):: Finished Loading Settings"
|
|
Return $ini
|
|
}
|
|
End
|
|
{Write-Verbose "$($MyInvocation.MyCommand.Name):: Function ended"}
|
|
}
|