-
Notifications
You must be signed in to change notification settings - Fork 212
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
Windows support #140
Comments
Hi @techtonik Thanks for report. But E:\grtp.co>py -m nodeenv -v .vjs -n 4.2.1 --prebuilt |
Nice. I'd switch to that option by default. Looks like problem with 32-bit Windows:
|
Download for Windows fails, because Windows downloads have different URL structure.
|
So far, please make --prebuilt mode as default on windows. |
I believe, we need to do it for all platforms :) |
It would be nice to merge #148 before moving further into downloads refactoring for all systems. It should be pretty easy then to take it and finish it from there. |
Done |
One step closer. He-he.. |
Another fix is in #149 |
Well, the code is there, but coverage test fails, probably because Windows execution branch is not tested on Travis. |
for me the keyerror is 'amd64' although i have a i5 core. please add support for amd64 arch. perhaps it has something to do with python for 64 bit versions since the intel 64 bit architecture was licensed from amd, therefore the 'amd64' key; the python binaries for 64 bit all have the amd64 denomination |
@neocris what is the exact output of this command on your machine?
|
@neocris also, do you use latest Github version? |
@techtonik the output is "AMD64". i don't get the github question, neither have it installed. i installed nodeenv trough 'pip install' if that's what you mean |
Try |
now there's an error on opening tarfile.py in python '/lib' dir |
@neocris can you post it here? |
here's the cmd i run for node 4.3.0:
and here's the full traceback: Install node (4.3.0) i'm running this on python 2.7.11 |
#149 merged |
please, try one more time. |
It will fail with missing symlink - fixed in #150. Now Windows needs its own |
#150 merged |
ok, so i dig a little trough nodeenv.py and after it copies prebuilt node it tries to install npm trough a bash shell script, not native to windows by the way, from npmjs.org. so if only nodeenv can do in windows is to grab a piece of file and put it somewhere i don't see the advantage of its use since i can do that myself without much hassle |
It's only for the old versions of the nodes. if node_version_from_opt(opt) < parse_version("0.6.3") or opt.with_npm:
install_npm(env_dir, src_dir, opt) |
right, but the prebuilt version nodeenv is getting doesn't, it's only the engine not npm. the way i see it (and also guessed by previous comment of techtonik) the included npm comes only with node installer. |
Prebuilt version of the node.js for Linux include both ➥ git clone https://github.com/ekalinin/nodeenv.git && cd nodeenv
➥ virtualenv --no-site-packages env && . env/bin/activate && python setup.py install && nodeenv -j 4 -p --prebuilt
➥ . env/bin/activate
(env) ➥ node -v
v5.6.0
(env) ➥ npm -v
3.6.0 It seems like for Windows we have another content of the node.js archive. |
doesn't |
|
sorry, i didn't scroll the code block to the right and missed the nodeenv cmd. get it now. thx |
@ekalinin is it possible in any way that you might have another global node instance sneaking in your system so that the npm call is in fact a global one and not from virtual node environment? |
@neocris nope, i haven't globaly installed node.js: ➥ aptitude search nodejs
p nodejs - evented I/O for V8 javascript
p nodejs:i386 - evented I/O for V8 javascript
p nodejs-dbg - evented I/O for V8 javascript (debug)
p nodejs-dbg:i386 - evented I/O for V8 javascript (debug)
p nodejs-dev - evented I/O for V8 javascript (development files)
p nodejs-dev:i386 - evented I/O for V8 javascript (development files)
p nodejs-legacy - evented I/O for V8 javascript (legacy symlink) |
|
Was looking at this issue, unfortunately I don't have time to completely solve it now, but I figure I would post my partial results.
Cmd:
|
@MCGallaspy installing from source is not an easy way. Easy way is to just download binaries, but it was reverted, because a4bf0e7 broke something on Linux. |
@MCGallaspy try reverting code to revision MCGallaspy@cdbd415 to see what was made for prebuilt stuff. Basically |
Tried
|
It's because the parameter |
Yeah, I see what you mean. Here's a work-in-progress: https://github.com/MCGallaspy/nodeenv/commits/windows-support-2 The command Short on time again, will try again later! |
@MCGallaspy you're not testing the right revision - line 632 in your trace doesn't correspond to https://github.com/MCGallaspy/nodeenv/blob/cdbd41594a6ac57547cd3684de2faf5b946b4c25/nodeenv.py#L632 |
I see that https://github.com/MCGallaspy/nodeenv/commits/windows-support-2 branch is on top of needed fixes, so yes - need a way to download and install |
Hi all. Sorry if this is not the correct place to ask, but is nodeenv supported on 64bit Win10? From this thread it seems not yet, but want to confirm. Been trying to use it without success. |
I don't have time/project to complete this, so it is not supported. |
Another commit for ekalinin#140
Final fix for ekalinin#140. `mklink` fails with `You do not have sufficient privilege to perform this operation.` on my system, so make it optional.
Can be closed for now. @ekalinin can you wrap a release with these changes? |
Done: |
Can't create environment on Windows, because it requires compiler.
The only solution that comes into my mind is to use compiled binaries. I implemented this once for getting prerequisites for compiling Wesnoth. Perhaps this code can be reused here too:
https://bitbucket.org/techtonik/locally/src/59e387ead07120777fdbe77fd0d047904cea6b14/05.wesnoth.py?at=default&fileviewer=file-view-default
The text was updated successfully, but these errors were encountered: