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

Python command script on Windows #1128

Closed
sgryphon opened this issue Dec 9, 2018 · 4 comments · Fixed by #1576
Closed

Python command script on Windows #1128

sgryphon opened this issue Dec 9, 2018 · 4 comments · Fixed by #1576

Comments

@sgryphon
Copy link
Contributor

sgryphon commented Dec 9, 2018

Version Information

  • vyper Version: v0.1.0-beta.5
  • OS: win
  • Python Version (python --version): 3.7
  • Environment (output of pip freeze):
    pycryptodome==3.7.2
    vyper==0.1.0b5

What's your issue about?

After installation, the command vyper does not work on Windows.

The installation does put a shell script in the Python folder %AppData%\Local\Programs\Python\Python37\Scripts

However, although this is on the path, it does not run on Windows.

Other programs often put an exe or similar file there instead.

How can it be fixed?

I put a simple vyper.cmd file in the same folder, with the contents:

@python C:\Dev\vyper\build\scripts-3.7\vyper %*

This is a hack, because it hard codes to my development path, but something similar would work if configured with the correct location installed.

Cute Animal Picture

put a cute animal picture here.

@ghost
Copy link

ghost commented Dec 9, 2018

@python %~dp0\vyper %*

@jacqueswww
Copy link
Contributor

I think the solution here is to use console_scripts with entrypoints, this way it will work on all platforms :)

@jacqueswww
Copy link
Contributor

jacqueswww commented Jan 4, 2019

Starting on this.

@Kevin-Chen0
Copy link

Works, thank you!!

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

Successfully merging a pull request may close this issue.

3 participants