Skip to content

Fixes Setup.py error on Windows #676 #734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
11 changes: 11 additions & 0 deletions scripts/setup-fix.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if ! [ -x "$(command -v python)" ];
then
echo "Python environment notfound.."
else
echo "Python environment found.."
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check windows batch scripting syntax for if

python --version
cp -R ../kubernetes/base/* ../kubernetes/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the reason to do the 'cp -R' above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the reason to do the 'cp -R' above?

"When we clone submodule with git the folders in the /kubernetes/base is supposed to be symbolically linked in the /kubernetes directory. In Windows this is not done. For a Windows developer, we’ll need to have a script copying all the base/* folders into */. "

^ is what @micw523 requested in his issue. so 'cp -R' does the job.

cd ../ && python setup.py install