@@ -112,7 +112,8 @@ var _ = Describe("Supply", func() {
112112 mockStager .EXPECT ().LinkDirectoryInDepDir (filepath .Join (pythonInstallDir , "lib" ), "lib" )
113113 Expect (supplier .InstallPython ()).To (Succeed ())
114114 Expect (os .Getenv ("PATH" )).To (Equal (fmt .Sprintf ("%s:%s" , filepath .Join (depDir , "bin" ), originalPath )))
115- Expect (os .Getenv ("PYTHONPATH" )).To (Equal (filepath .Join (depDir )))
115+ Expect (os .Getenv ("PYTHONPATH" )).To (Equal (depDir ))
116+ Expect (os .Getenv ("CFLAGS" )).To (Equal (fmt .Sprintf ("-I%s" , filepath .Join (depDir , "python" , "include" , "python3.4" ))))
116117 })
117118 })
118119
@@ -122,13 +123,14 @@ var _ = Describe("Supply", func() {
122123 })
123124
124125 It ("installs the default Python version" , func () {
125- mockManifest .EXPECT ().DefaultVersion ("python" ).Return (libbuildpack.Dependency {Name : "python" , Version : "some-default-version" }, nil )
126- mockInstaller .EXPECT ().InstallDependency (libbuildpack.Dependency {Name : "python" , Version : "some-default-version" }, pythonInstallDir )
126+ mockManifest .EXPECT ().DefaultVersion ("python" ).Return (libbuildpack.Dependency {Name : "python" , Version : "some-default-version-3.2 " }, nil )
127+ mockInstaller .EXPECT ().InstallDependency (libbuildpack.Dependency {Name : "python" , Version : "some-default-version-3.2 " }, pythonInstallDir )
127128 mockStager .EXPECT ().LinkDirectoryInDepDir (filepath .Join (pythonInstallDir , "bin" ), "bin" )
128129 mockStager .EXPECT ().LinkDirectoryInDepDir (filepath .Join (pythonInstallDir , "lib" ), "lib" )
129130 Expect (supplier .InstallPython ()).To (Succeed ())
130131 Expect (os .Getenv ("PATH" )).To (Equal (fmt .Sprintf ("%s:%s" , filepath .Join (depDir , "bin" ), originalPath )))
131132 Expect (os .Getenv ("PYTHONPATH" )).To (Equal (filepath .Join (depDir )))
133+ Expect (os .Getenv ("CFLAGS" )).To (Equal (fmt .Sprintf ("-I%s" , filepath .Join (depDir , "python" , "include" , "python3.2" ))))
132134 })
133135 })
134136 })
0 commit comments