Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
9ef0f0ae
Commit
9ef0f0ae
authored
May 25, 2015
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.22.x'
parents
7d231ec4
6344f0b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
15 deletions
+45
-15
appveyor.yml
appveyor.yml
+25
-5
appveyor/install.ps1
appveyor/install.ps1
+19
-9
setupegg.py
setupegg.py
+1
-1
No files found.
appveyor.yml
View file @
9ef0f0ae
...
...
@@ -7,6 +7,10 @@ environment:
WITH_COMPILER
:
"
cmd
/E:ON
/V:ON
/C
.
\\
appveyor
\\
run_with_compiler.cmd"
matrix
:
-
PYTHON
:
"
C:
\\
Python26"
PYTHON_VERSION
:
"
2.6.6"
PYTHON_ARCH
:
"
32"
-
PYTHON
:
"
C:
\\
Python27"
PYTHON_VERSION
:
"
2.7.9"
PYTHON_ARCH
:
"
32"
...
...
@@ -19,6 +23,10 @@ environment:
PYTHON_VERSION
:
"
3.4.3"
PYTHON_ARCH
:
"
32"
-
PYTHON
:
"
C:
\\
Python26-x64"
PYTHON_VERSION
:
"
2.6.6"
PYTHON_ARCH
:
"
64"
-
PYTHON
:
"
C:
\\
Python27-x64"
PYTHON_VERSION
:
"
2.7.9"
PYTHON_ARCH
:
"
64"
...
...
@@ -34,20 +42,32 @@ environment:
PYTHON_ARCH
:
"
64"
WINDOWS_SDK_VERSION
:
"
v7.1"
clone_depth
:
5
branches
:
only
:
-
master
-
0.22.x
init
:
-
"
ECHO
%PYTHON%
%PYTHON_VERSION%
%PYTHON_ARCH%"
install
:
-
"
powershell
appveyor
\\
install.ps1"
-
"
%PYTHON%
\\
python
--version"
-
"
%PYTHON%
\\
python.exe
--version"
-
"
%PYTHON%
\\
Scripts
\\
pip.exe
--version"
-
"
%PYTHON%
\\
Scripts
\\
wheel.exe
version"
build
:
off
build_script
:
-
"
%WITH_COMPILER%
%PYTHON%
\\
python.exe
setupegg.py
build"
-
"
%WITH_COMPILER%
%PYTHON%
\\
python.exe
setupegg.py
--quiet
bdist_wheel"
-
"
%WITH_COMPILER%
%PYTHON%
\\
python.exe
setupegg.py
--quiet
bdist_msi"
-
"
%WITH_COMPILER%
%PYTHON%
\\
python.exe
setupegg.py
--quiet
bdist_wininst"
test
:
off
test_script
:
-
"
%WITH_COMPILER%
%PYTHON%
\\
python
setup.py
test"
after_test
:
-
"
%WITH_COMPILER%
%PYTHON%
\\
python
setup.py
bdist_wheel"
-
"
%WITH_COMPILER%
%PYTHON%
\\
python.exe
setupegg.py
test"
artifacts
:
-
path
:
dist\*
...
...
appveyor/install.ps1
View file @
9ef0f0ae
...
...
@@ -51,7 +51,7 @@ function InstallPython ($python_version, $architecture, $python_home) {
Write-Host
"Installing"
$filepath
"to"
$python_home
$args
=
"/qn /i
$filepath
TARGETDIR=
$python_home
"
Write-Host
"msiexec.exe"
$args
Start-Process
-FilePath
"msiexec.exe"
-ArgumentList
$args
-Wait
-Passthru
Start-Process
-FilePath
"msiexec.exe"
-ArgumentList
$args
-Wait
Write-Host
"Python
$python_version
(
$architecture
) installation complete"
return
$true
}
...
...
@@ -60,18 +60,28 @@ function InstallPython ($python_version, $architecture, $python_home) {
function
InstallPip
(
$python_home
)
{
$pip_path
=
$python_home
+
"\Scripts\pip.exe"
$python_path
=
$python_home
+
"\python.exe"
if
(
-not
(
Test-Path
$pip_path
))
{
Write-Host
"Installing pip..."
if
(
Test-Path
$pip_path
)
{
Write-Host
"Upgrading pip"
$args
=
"-m pip.__main__ install --upgrade pip"
Write-Host
"Executing:"
$python_path
$args
Start-Process
-FilePath
$python_path
-ArgumentList
$args
-Wait
Write-Host
"pip upgrade complete"
}
else
{
Write-Host
"Installing pip"
$webclient
=
New-Object
System.Net.WebClient
$webclient
.
DownloadFile
(
$GET_PIP_URL
,
$GET_PIP_PATH
)
Write-Host
"Executing:"
$python_path
$GET_PIP_PATH
Start-Process
-FilePath
"
$python_path
"
-ArgumentList
"
$GET_PIP_PATH
"
-Wait
-Passthru
}
else
{
Write-Host
"pip already installed."
}
Start-Process
-FilePath
"
$python_path
"
-ArgumentList
"
$GET_PIP_PATH
"
Write-Host
"pip installation complete"
}
Write-Host
"Upgrading setuptools"
$args
=
"install --upgrade setuptools"
Write-Host
"Executing:"
$pip_path
$args
Start-Process
-FilePath
$pip_path
-ArgumentList
$args
-Wait
Write-Host
"setuptools upgrade complete"
}
function
InstallPackage
(
$python_home
,
$pkg
)
{
function
InstallP
ipP
ackage
(
$python_home
,
$pkg
)
{
$pip_path
=
$python_home
+
"\Scripts\pip.exe"
&
$pip_path
install
$pkg
}
...
...
@@ -79,7 +89,7 @@ function InstallPackage ($python_home, $pkg) {
function
main
()
{
InstallPython
$
env
:
PYTHON_VERSION
$
env
:
PYTHON_ARCH
$
env
:
PYTHON
InstallPip
$
env
:
PYTHON
InstallPackage
$
env
:
PYTHON
wheel
InstallP
ipP
ackage
$
env
:
PYTHON
wheel
}
main
setupegg.py
View file @
9ef0f0ae
#!/usr/bin/env python
"""Wrapper to run setup.py using setuptools."""
import
setuptools
with
open
(
'setup.py'
,
'rb'
)
as
f
:
with
open
(
'setup.py'
)
as
f
:
exec
(
compile
(
f
.
read
(),
'setup.py'
,
'exec'
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment