Repository: kivy/kivy

Issue:
Setupconfig.py not installed with pip
When installing master with pip, setupconfig.py is not created on Windows. Also, it requires a `make force` I believe for it to be created when pulling normally. But am not 100% sure about that.

```
C:\kivy27-x86>pip install https://github.com/kivy/kivy/archive/master.zip
Downloading/unpacking https://github.com/kivy/kivy/archive/master.zip
  Running setup.py (path:c:\users\cpl\appdata\local\temp\pip-vxujfo-build\setup.
py) egg_info for package from https://github.com/kivy/kivy/archive/master.zip
    'pkg-config' is not recognized as an internal or external command,
    operable program or batch file.
    'pkg-config' is not recognized as an internal or external command,
    operable program or batch file.
    Windows platform detected, force GLEW usage.
    Using this graphics system: OpenGL

     warning: no files found matching '*.pyd' under directory 'kivy'
Requirement already satisfied (use --upgrade to upgrade): Kivy-Garden==0.1.1 in
c:\kivy27-x86\python\lib\site-packages\kivy_garden-0.1.1-py2.7.egg (from Kivy==1
.9.0-dev)
Requirement already satisfied (use --upgrade to upgrade): requests in c:\kivy27-
x86\python\lib\site-packages (from Kivy-Garden==0.1.1->Kivy==1.9.0-dev)
Installing collected packages: Kivy
  Running setup.py install for Kivy
    'pkg-config' is not recognized as an internal or external command,
    operable program or batch file.
    'pkg-config' is not recognized as an internal or external command,
    operable program or batch file.
    Windows platform detected, force GLEW usage.
    Using this graphics system: OpenGL
    Build configuration is:
     * use_rpi = False
     * use_opengl_es2 = False
     * use_opengl_debug = False
     * use_glew = True
     * use_sdl = False
     * use_sdl2 = False
     * use_ios = False
     * use_mesagl = False
     * use_x11 = False
     * use_gstreamer = False
     * use_avfoundation = False
     * use_osx_frameworks = False
     * debug = False
    Generate config.h
    Generate config.pxi
    Generate setupconfig.py
    Detected compiler is mingw32
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/ope
ngl.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\opengl
.c
    building 'kivy.graphics.opengl' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\opengl.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo
-build\kivy\graphics\opengl.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\opengl.o c:\users\cpl\appdata\local\te
mp\pip-vxujfo-build\kivy\graphics\opengl.def -LC:\kivy27-x86\Python\libs -LC:\ki
vy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\lib.wi
n32-2.7\kivy\graphics\opengl.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/ste
ncil_instructions.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\g
raphics\stencil_instructions.c
    building 'kivy.graphics.stencil_instructions' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\stencil_instructions.c -o c:\users\cpl\appdata\local\t
emp\pip-vxujfo-build\kivy\graphics\stencil_instructions.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\stencil_instructions.o c:\users\cpl\ap
pdata\local\temp\pip-vxujfo-build\kivy\graphics\stencil_instructions.def -LC:\ki
vy27-x86\Python\libs -LC:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython
27 -lmsvcr90 -o build\lib.win32-2.7\kivy\graphics\stencil_instructions.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/tra
nsformation.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphic
s\transformation.c
    building 'kivy.graphics.transformation' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\transformation.c -o c:\users\cpl\appdata\local\temp\pi
p-vxujfo-build\kivy\graphics\transformation.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\transformation.o c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\transformation.def -LC:\kivy27-x86\Pyt
hon\libs -LC:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90
 -o build\lib.win32-2.7\kivy\graphics\transformation.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/vbo
.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\vbo.c
    building 'kivy.graphics.vbo' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\vbo.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo-bu
ild\kivy\graphics\vbo.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\vbo.o c:\users\cpl\appdata\local\temp\
pip-vxujfo-build\kivy\graphics\vbo.def -LC:\kivy27-x86\Python\libs -LC:\kivy27-x
86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\lib.win32-2.
7\kivy\graphics\vbo.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/tes
selator.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\te
sselator.c
    building 'kivy.graphics.tesselator' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ikivy/lib/libtes
s2/Include -IC:\kivy27-x86\Python\include -IC:\kivy27-x86\Python\PC -c c:\users\
cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\tesselator.c -o c:\users\c
pl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\tesselator.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ikivy/lib/libtes
s2/Include -IC:\kivy27-x86\Python\include -IC:\kivy27-x86\Python\PC -c c:\users\
cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib/libtess2/Source/bucketalloc.c -
o c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\buck
etalloc.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ikivy/lib/libtes
s2/Include -IC:\kivy27-x86\Python\include -IC:\kivy27-x86\Python\PC -c c:\users\
cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib/libtess2/Source/dict.c -o c:\us
ers\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\dict.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ikivy/lib/libtes
s2/Include -IC:\kivy27-x86\Python\include -IC:\kivy27-x86\Python\PC -c c:\users\
cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib/libtess2/Source/geom.c -o c:\us
ers\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\geom.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ikivy/lib/libtes
s2/Include -IC:\kivy27-x86\Python\include -IC:\kivy27-x86\Python\PC -c c:\users\
cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib/libtess2/Source/mesh.c -o c:\us
ers\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\mesh.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ikivy/lib/libtes
s2/Include -IC:\kivy27-x86\Python\include -IC:\kivy27-x86\Python\PC -c c:\users\
cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib/libtess2/Source/priorityq.c -o
c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\priori
tyq.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ikivy/lib/libtes
s2/Include -IC:\kivy27-x86\Python\include -IC:\kivy27-x86\Python\PC -c c:\users\
cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib/libtess2/Source/sweep.c -o c:\u
sers\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\sweep.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ikivy/lib/libtes
s2/Include -IC:\kivy27-x86\Python\include -IC:\kivy27-x86\Python\PC -c c:\users\
cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib/libtess2/Source/tess.c -o c:\us
ers\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\tess.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\tesselator.o c:\users\cpl\appdata\loca
l\temp\pip-vxujfo-build\kivy\lib\libtess2\source\bucketalloc.o c:\users\cpl\appd
ata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\dict.o c:\users\cpl\app
data\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\geom.o c:\users\cpl\ap
pdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\mesh.o c:\users\cpl\a
ppdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\priorityq.o c:\users
\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\sweep.o c:\use
rs\cpl\appdata\local\temp\pip-vxujfo-build\kivy\lib\libtess2\source\tess.o c:\us
ers\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\tesselator.def -LC:\ki
vy27-x86\Python\libs -LC:\kivy27-x86\Python\PCbuild -lpython27 -lmsvcr90 -o buil
d\lib.win32-2.7\kivy\graphics\tesselator.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/ver
tex.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\vertex
.c
    building 'kivy.graphics.vertex' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\vertex.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo
-build\kivy\graphics\vertex.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\vertex.o c:\users\cpl\appdata\local\te
mp\pip-vxujfo-build\kivy\graphics\vertex.def -LC:\kivy27-x86\Python\libs -LC:\ki
vy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\lib.wi
n32-2.7\kivy\graphics\vertex.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/fbo
.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\fbo.c
    building 'kivy.graphics.fbo' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\fbo.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo-bu
ild\kivy\graphics\fbo.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\fbo.o c:\users\cpl\appdata\local\temp\
pip-vxujfo-build\kivy\graphics\fbo.def -LC:\kivy27-x86\Python\libs -LC:\kivy27-x
86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\lib.win32-2.
7\kivy\graphics\fbo.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/con
text.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\conte
xt.c
    building 'kivy.graphics.context' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\context.c -o c:\users\cpl\appdata\local\temp\pip-vxujf
o-build\kivy\graphics\context.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\context.o c:\users\cpl\appdata\local\t
emp\pip-vxujfo-build\kivy\graphics\context.def -LC:\kivy27-x86\Python\libs -LC:\
kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\lib.
win32-2.7\kivy\graphics\context.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/buf
fer.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\buffer
.c
    building 'kivy.graphics.buffer' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\buffer.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo
-build\kivy\graphics\buffer.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\buffer.o c:\users\cpl\appdata\local\te
mp\pip-vxujfo-build\kivy\graphics\buffer.def -LC:\kivy27-x86\Python\libs -LC:\ki
vy27-x86\Python\PCbuild -lpython27 -lmsvcr90 -o build\lib.win32-2.7\kivy\graphic
s\buffer.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\properties.p
yx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\properties.c
    building 'kivy.properties' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\properties.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo-buil
d\kivy\properties.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\properties.o c:\users\cpl\appdata\local\temp\pi
p-vxujfo-build\kivy\properties.def -LC:\kivy27-x86\Python\libs -LC:\kivy27-x86\P
ython\PCbuild -lpython27 -lmsvcr90 -o build\lib.win32-2.7\kivy\properties.pyd -l
m
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/svg
.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\svg.c
    building 'kivy.graphics.svg' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\svg.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo-bu
ild\kivy\graphics\svg.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\svg.o c:\users\cpl\appdata\local\temp\
pip-vxujfo-build\kivy\graphics\svg.def -LC:\kivy27-x86\Python\libs -LC:\kivy27-x
86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\lib.win32-2.
7\kivy\graphics\svg.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\core/text/te
xt_layout.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\core/text
\text_layout.c
    building 'kivy.core.text.text_layout' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\core/text\text_layout.c -o c:\users\cpl\appdata\local\temp\pip-
vxujfo-build\kivy\core\text\text_layout.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\core\text\text_layout.o c:\users\cpl\appdata\lo
cal\temp\pip-vxujfo-build\kivy\core\text\text_layout.def -LC:\kivy27-x86\Python\
libs -LC:\kivy27-x86\Python\PCbuild -lpython27 -lmsvcr90 -o build\lib.win32-2.7\
kivy\core\text\text_layout.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/ope
ngl_utils.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\
opengl_utils.c
    building 'kivy.graphics.opengl_utils' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\opengl_utils.c -o c:\users\cpl\appdata\local\temp\pip-
vxujfo-build\kivy\graphics\opengl_utils.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\opengl_utils.o c:\users\cpl\appdata\lo
cal\temp\pip-vxujfo-build\kivy\graphics\opengl_utils.def -LC:\kivy27-x86\Python\
libs -LC:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o
build\lib.win32-2.7\kivy\graphics\opengl_utils.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/gl_
instructions.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphi
cs\gl_instructions.c
    building 'kivy.graphics.gl_instructions' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\gl_instructions.c -o c:\users\cpl\appdata\local\temp\p
ip-vxujfo-build\kivy\graphics\gl_instructions.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\gl_instructions.o c:\users\cpl\appdata
\local\temp\pip-vxujfo-build\kivy\graphics\gl_instructions.def -LC:\kivy27-x86\P
ython\libs -LC:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr
90 -o build\lib.win32-2.7\kivy\graphics\gl_instructions.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\_event.pyx t
o c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\_event.c
    building 'kivy._event' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\_event.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo-build\ki
vy\_event.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\_event.o c:\users\cpl\appdata\local\temp\pip-vx
ujfo-build\kivy\_event.def -LC:\kivy27-x86\Python\libs -LC:\kivy27-x86\Python\PC
build -lpython27 -lmsvcr90 -o build\lib.win32-2.7\kivy\_event.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/com
piler.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\comp
iler.c
    building 'kivy.graphics.compiler' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\compiler.c -o c:\users\cpl\appdata\local\temp\pip-vxuj
fo-build\kivy\graphics\compiler.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\compiler.o c:\users\cpl\appdata\local\
temp\pip-vxujfo-build\kivy\graphics\compiler.def -LC:\kivy27-x86\Python\libs -LC
:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\li
b.win32-2.7\kivy\graphics\compiler.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/con
text_instructions.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\g
raphics\context_instructions.c
    building 'kivy.graphics.context_instructions' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\context_instructions.c -o c:\users\cpl\appdata\local\t
emp\pip-vxujfo-build\kivy\graphics\context_instructions.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\context_instructions.o c:\users\cpl\ap
pdata\local\temp\pip-vxujfo-build\kivy\graphics\context_instructions.def -LC:\ki
vy27-x86\Python\libs -LC:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython
27 -lmsvcr90 -o build\lib.win32-2.7\kivy\graphics\context_instructions.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/ins
tructions.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\
instructions.c
    building 'kivy.graphics.instructions' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\instructions.c -o c:\users\cpl\appdata\local\temp\pip-
vxujfo-build\kivy\graphics\instructions.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\instructions.o c:\users\cpl\appdata\lo
cal\temp\pip-vxujfo-build\kivy\graphics\instructions.def -LC:\kivy27-x86\Python\
libs -LC:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o
build\lib.win32-2.7\kivy\graphics\instructions.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/c_o
pengl_debug.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphic
s\c_opengl_debug.c
    building 'kivy.graphics.c_opengl_debug' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\c_opengl_debug.c -o c:\users\cpl\appdata\local\temp\pi
p-vxujfo-build\kivy\graphics\c_opengl_debug.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\c_opengl_debug.o c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\c_opengl_debug.def -LC:\kivy27-x86\Pyt
hon\libs -LC:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90
 -o build\lib.win32-2.7\kivy\graphics\c_opengl_debug.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/sha
der.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\shader
.c
    building 'kivy.graphics.shader' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\shader.c -o c:\users\cpl\appdata\local\temp\pip-vxujfo
-build\kivy\graphics\shader.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\shader.o c:\users\cpl\appdata\local\te
mp\pip-vxujfo-build\kivy\graphics\shader.def -LC:\kivy27-x86\Python\libs -LC:\ki
vy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\lib.wi
n32-2.7\kivy\graphics\shader.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/ver
tex_instructions.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\gr
aphics\vertex_instructions.c
    building 'kivy.graphics.vertex_instructions' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\vertex_instructions.c -o c:\users\cpl\appdata\local\te
mp\pip-vxujfo-build\kivy\graphics\vertex_instructions.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\vertex_instructions.o c:\users\cpl\app
data\local\temp\pip-vxujfo-build\kivy\graphics\vertex_instructions.def -LC:\kivy
27-x86\Python\libs -LC:\kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27
 -lmsvcr90 -o build\lib.win32-2.7\kivy\graphics\vertex_instructions.pyd -lm
    cythoning c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics/tex
ture.pyx to c:\users\cpl\appdata\local\temp\pip-vxujfo-build\kivy\graphics\textu
re.c
    building 'kivy.graphics.texture' extension
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\kivy27-x86\P
ython\include -IC:\kivy27-x86\Python\PC -c c:\users\cpl\appdata\local\temp\pip-v
xujfo-build\kivy\graphics\texture.c -o c:\users\cpl\appdata\local\temp\pip-vxujf
o-build\kivy\graphics\texture.o
    C:\kivy27-x86\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\users\cpl\appdata\
local\temp\pip-vxujfo-build\kivy\graphics\texture.o c:\users\cpl\appdata\local\t
emp\pip-vxujfo-build\kivy\graphics\texture.def -LC:\kivy27-x86\Python\libs -LC:\
kivy27-x86\Python\PCbuild -lopengl32 -lglew32 -lpython27 -lmsvcr90 -o build\lib.
win32-2.7\kivy\graphics\texture.pyd -lm

     warning: no files found matching '*.pyd' under directory 'kivy'
Successfully installed Kivy
Cleaning up...

C:\kivy27-x86>python
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
[INFO              ] [Logger      ] Record log in C:\Users\CPL\.kivy\logs\kivy_1
5-01-12_2.txt
[INFO              ] Kivy v1.9.0-dev
[INFO              ] [Python      ] v2.7.6 (default, Nov 10 2013, 19:24:18) [MSC
 v.1500 32 bit (Intel)]
>>> import kivy.setupconfig
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ImportError: No module named setupconfig
```



Discussion:

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -105,9 +105,20 @@ def pkgconfig(*packages, **kw):
 # -----------------------------------------------------------------------------
 # Setup classes
 
+# the build path where kivy is being compiled
+build_path = dirname(__file__)
+
 
 class KivyBuildExt(build_ext):
 
+    def finalize_options(self):
+        retval = build_ext.finalize_options(self)
+        global build_path
+        if (self.build_lib is not None and exists(self.build_lib) and
+            not self.inplace):
+            build_path = self.build_lib
+        return retval
+
     def build_extensions(self):
         # build files
         config_h_fn = expand('graphics', 'config.h')
@@ -133,14 +144,14 @@ def build_extensions(self):
             config_py += '{0} = {1}\n'.format(opt, value)
         debug = bool(self.debug)
         print(' * debug = {0}'.format(debug))
+
         config_pxi += 'DEF DEBUG = {0}\n'.format(debug)
         config_py += 'DEBUG = {0}\n'.format(debug)
-        print('Generate config.h')
-        self.update_if_changed(config_h_fn, config_h)
-        print('Generate config.pxi')
-        self.update_if_changed(config_pxi_fn, config_pxi)
-        print('Generate setupconfig.py')
-        self.update_if_changed(config_py_fn, config_py)
+        for fn, content in (
+            (config_h_fn, config_h), (config_pxi_fn, config_pxi),
+            (config_py_fn, config_py)):
+            if self.update_if_changed(fn, content)
+                print('Updated {}'.format(fn))
 
         c = self.compiler.compiler_type
         print('Detected compiler is {}'.format(c))
@@ -158,6 +169,7 @@ def update_if_changed(self, fn, content):
         if need_update:
             with open(fn, 'w') as fd:
                 fd.write(content)
+        return need_update
 
 
 # -----------------------------------------------------------------------------
@@ -312,7 +324,7 @@ def get_modulename_from_file(filename):
 
 
 def expand(*args):
-    return join(dirname(__file__), 'kivy', *args)
+    return join(build_path, 'kivy', *args)
 
 
 class CythonExtension(Extension):


Test patch: