Skip to content

Setup.py will fail on Windows #676

Description

@micw523

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.

Activity

  1. micw523 commented on Nov 2, 2018

    @micw523
    ContributorAuthor

    /help
    /good-first-issue

  2. k8s-ci-robot commented on Nov 2, 2018

    @k8s-ci-robot
    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.

    Details

    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.

  3. added
    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Nov 2, 2018
  4. micw523 commented on Nov 5, 2018

    @micw523
    ContributorAuthor

    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.
  5. micw523 commented on Nov 7, 2018

    @micw523
    ContributorAuthor

    @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

  6. micw523 commented on Nov 10, 2018

    @micw523
    ContributorAuthor

    /priority backlog

  7. Sai-Adarsh commented on Jan 21, 2019

    @Sai-Adarsh
    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.

  8. added a commit that references this issue on Feb 20, 2019
  9. micw523 commented on Feb 20, 2019

    @micw523
    ContributorAuthor

    /close via #766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions