Skip to content
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

Setup.py will fail on Windows #676

Closed
micw523 opened this issue Nov 2, 2018 · 8 comments
Closed

Setup.py will fail on Windows #676

micw523 opened this issue Nov 2, 2018 · 8 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@micw523
Copy link
Contributor

micw523 commented Nov 2, 2018

This issue references #479, as it is a restriction on the current repo.
This repo uses symbolic link when managing the submodules, so that the folders in /kubernetes/base can be referenced in /kubernetes.
Windows does not have symbolic link, so Windows developers will have to manually copy the folders over after doing a --recursive clone.
This should be a simple enough fix in case someone wants to take a crack at it.

@micw523
Copy link
Contributor Author

micw523 commented Nov 2, 2018

/help
/good-first-issue

@k8s-ci-robot
Copy link
Contributor

@micw523:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

/help
/good-first-issue

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Nov 2, 2018
@micw523
Copy link
Contributor Author

micw523 commented Nov 5, 2018

Realized that I should provide a suggested fix with the good first issue label.
I don't think we should revise our script to import from base/config - that could break existing examples and existing codes.
What could be done is someone provides a .bat file under scripts/ to:

  1. make sure python environment exists
  2. copy base/config to config/
  3. run python setup.py install.

@ghost
Copy link

ghost commented Nov 7, 2018

I'd like to take a stab at this but I have a few questions first.

  1. Would you be looking for a specific python version (2 vs 3) and more specifically, a subversion?
  2. base/config and config/ are always in the same location?
  3. run python setup.py install script from a specific directory?
  4. does it have to be a bat script or would powershell be okay?

@micw523
Copy link
Contributor Author

micw523 commented Nov 7, 2018

@jenetiks

  1. We should just look for python in the environment - although, we do support Python 2.7. The file setup.py though will be configured to handle this. Personally I don’t expect any developer to clone this repository with Python 2.6 or lower, but that might be up to debate.

  2. 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 */.

  3. It probably will have to be run in a certain directory, likely the root of the repo or scripts. It needs to be documented well where it is supposed to be run though.

  4. I’ll prefer to be a bat script. Although I don’t develop this repo in Windows, I do use Anaconda and python environments variables are only available under the Anaconda Prompt (cmd).

Correct me if you have other thoughts. /cc @roycaihw

@micw523
Copy link
Contributor Author

micw523 commented Nov 10, 2018

/priority backlog

@k8s-ci-robot k8s-ci-robot added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Nov 10, 2018
@Sai-Adarsh
Copy link
Contributor

/priority backlog

Hello @micw523 Gave a PR that solves the issue.

Added shell script to check python environment, prints the python version, copy files from /kubernetes/base to /kubernetes/ and finally runs python setup.py install.

@micw523
Copy link
Contributor Author

micw523 commented Feb 20, 2019

/close via #766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

3 participants