Compare commits

...
2 Commits
Author SHA1 Message Date
Kevin Darby dec5ab3036 py36 we also need to put py36 in externals 2018-06-06 17:55:18 -04:00
Kevin Darby e5391245d4 python 2.7 vs 3.6 blues 2018-06-06 17:24:31 -04:00
4 changed files with 10 additions and 7 deletions

No files matched your search

+1
View File
@@ -39,6 +39,7 @@
<Message Importance="High" Text="Generating service %(Proto3.FileName)" />
<Exec Command="
set PATH=$(spark_build_python_path);%path% &amp;
set PYTHONPATH=$(Externals)\python &amp;
$(protoc) ^
%(Proto3.FullPath) ^
+6 -5
View File
@@ -1,4 +1,5 @@
#!/usr/bin/python
from __future__ import print_function
import os, sys
from collections import namedtuple
@@ -30,8 +31,8 @@ import apioptions_pb2
def loadTemplate(lang, name):
path = os.path.join("templates", lang, name)
text = open(path).read()
utext = unicode(text, "utf-8")
return compiler.compile(utext)
#utext = unicode(text, "utf-8")
return compiler.compile(text)
def option(options, key, default=None):
if options.HasExtension(key):
@@ -307,7 +308,7 @@ if __name__ == "__main__":
if DEBUG:
data = open("data", mode='rb').read()
else:
data = sys.stdin.read()
data = sys.stdin.buffer.read()
request = plugin.CodeGeneratorRequest()
# open("data", 'wb').write(data)
request.ParseFromString(data)
@@ -316,8 +317,8 @@ if __name__ == "__main__":
if DEBUG:
for f in response.file:
print f.content
print(f.content)
else:
output = response.SerializeToString()
sys.stdout.write(output)
sys.stdout.buffer.write(output)
+2
View File
@@ -2,4 +2,6 @@
setlocal
@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat" > nul
cd /d %~dp0/../
setlocal
set path=%spark_build_python_path%;%path%
msbuild /m /nologo /p:debugtype=portable /p:platform=x64 /p:GenerateFullPaths=true /clp:verbosity=minimal /clp:summary %* spark_client.sln
+1 -2
View File
@@ -4,5 +4,4 @@ cd %~dp0\..
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat" > nul
cd /d %~dp0\..
setlocal
set path=c:\python27;%path%
cmd /C start "" "C:\Program Files\Microsoft VS Code\Code.exe" "%*" -n
cmd /C start "" "C:\Program Files\Microsoft VS Code\Code.exe" "%*"