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

Development Setup on Windows #5274

Open
jayvdb opened this issue Mar 19, 2018 · 8 comments
Open

Development Setup on Windows #5274

jayvdb opened this issue Mar 19, 2018 · 8 comments

Comments

@jayvdb
Copy link
Member

jayvdb commented Mar 19, 2018

https://api.coala.io/en/latest/Developers/Development_Setup.html mentions source, which is not going to work on Windows if the developer is trying those commands in a cmd.exe

Also Windows doesnt have python3 ; it only has python. Yippee.

@gitmate-bot
Copy link
Collaborator

GitMate.io thinks possibly related issues are #196 (Windows support), #130 (windows support), #390 (windows build), #291 (Windows: UnicodeEncodeError), and #496 (glob: windows support).

@VickedVic
Copy link

https://api.coala.io/en/latest/Developers/Development_Setup.html uses venv, but windows doesn't recognize that, it works fine with .\foo

@VickedVic
Copy link

VickedVic commented Mar 20, 2018

c:\>virtualenv .\foo ==> to create virtual environment

and

c:\> .\foo\scripts\activate ==> to activate it

@VickedVic
Copy link

VickedVic commented Mar 20, 2018

@VickedVic
Copy link

VickedVic commented Mar 20, 2018

Okay, i've tried this the entire day, and it seems to works only in this way at the moment:

Setting up virtualenv with foo and activating scripts:

C:\> cd working_dir #move into the dir where you want to create virtual environment for both
#command prompt and powershell

now we will need to run the virtualenv using .\foo

C:\Path\to\your\directory>virtualenv .\foo
Using base prefix 'c:\Path\to\appdata\local\programs\python\python36-32'
New python executable in C:\Path\to\your\directory\foo\Scripts\python.exe
Installing setuptools, pip, wheel...done.

now activate it using the scripts of .\foo

C:\Path\to\your\directory> .\foo\scripts\activate

Powershell has slightly different method:

PS C:> Set-ExecutionPolicy AllSigned

PS C:> virtualenv .\foo
New python executable in C:\foo\Scripts\python.exe
Installing setuptools................done.
Installing pip...................done.
PS C:> .\foo\scripts\activate

Do you want to run software from this untrusted publisher?
File C:\foo\scripts\activate.ps1 is published by E=jannis@leidel.info,
CN=Jannis Leidel, L=Berlin, S=Berlin, C=DE, Description=581796-Gh7xfJxkxQSIO4E0
and is not trusted on your system. Only run scripts from trusted publishers.
[V] Never run [D] Do not run [R] Run once [A] Always run [?] Help
(default is "D") : A

(foo) PS C:>

To deactivate, simply type:

(foo)C:\Path\to\your\directory> deactivate
C:\Path\to\your\directory>

installing from git:

(foo)C:\Path\to\your\directory>
(foo)C:\Path\to\your\directory> git clone https://github.com/coala/coala
(foo)C:\Path\to\your\directory> cd coala
(foo)C:\Path\to\your\directory> pip3 install .
(foo)C:\Path\to\your\directory> cd.. #cd- doesn't work in command prompt
(foo)C:\Path\to\your\directory> git clone https://github.com/coala/coala-bears
(foo)C:\Path\to\your\directory> cd coala-bears
(foo)C:\Path\to\your\directory> pip3 install .

@Jitender46559
Copy link

I want to work on this issue can you please assign me

@shivank1234
Copy link

Is this issue open?

@ghost
Copy link

ghost commented Nov 21, 2018

The 'install coala' & 'get started' section in https://coala.io/#/home?lang=Python have similar problems on Windows.

Should I file a new issue for that?

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

No branches or pull requests

5 participants