Commit graph

100 commits

Author SHA1 Message Date
getwe
5b51ae6941 not parallel processing gyp file
I'm working on a old platforms,when I run ```node-gyp configure```,node-gyp report one error of python 
> ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.

check this : http://bugs.python.org/issue3770

I suggest not parallel processing because usually we don't have so manay files to parse.

github.com/joyent/node had closed the issue of the same problem,see :

https://github.com/joyent/node/issues/6640
2014-02-27 10:13:06 +08:00
Jay Beavers
e7351e9a56 Merge branch 'master' of https://github.com/TooTallNate/node-gyp into updateGypMSVS 2013-11-11 18:42:38 -08:00
Nathan Rajlich
78aeff49db configure: update gyp invocation script path 2013-11-11 15:47:31 -08:00
Jay Beavers
3f4775f143 Update gyp for VS 2013 support, simplify configure logic to rely on gyp for detecting visual studio' 2013-11-11 11:18:00 -08:00
Nathan Rajlich
f28088a045 Merge pull request #300 from icosahedron/master
Handle when both VS2010 and VS2012 Express are installed
2013-10-19 23:09:15 -07:00
Nathan Rajlich
e04a99d508 Merge pull request #294 from pflannery/master
adds vs2012-full check support to "node-gyp configure"
2013-09-16 07:48:45 -07:00
Nathan Rajlich
1fbf1961db configure: fix log.verbose() call 2013-08-24 17:38:17 -07:00
Jay Kint
8683992d76 Handle when both VS2010 and VS2012 are installed
When both versions are present, attempt to use the command prompt to
determine which one should be set.

The command prompt for VS2012 set the environment variable to:

VisualStudioVersion=11.0

This environment variable is absent in the VS2010 command prompts.

Also, presumably the checkVCExpress function not setting hasVCExpress
was an oversight.
2013-07-27 23:18:17 -07:00
pflannery
9ac34f40ed adds vs2012-full check support to "node-gyp configure" 2013-07-20 15:29:54 +01:00
Nathan Rajlich
3c10f5db90 configure: strip "rc" from Python version number
Fixes #279.
2013-06-30 14:31:40 -07:00
Nathan Rajlich
a50187bf9d configure: guard against the possibility of semver.parse() throwing
Not really sure if this ever happens, but just in case...
2013-06-30 14:18:02 -07:00
Nathan Rajlich
0ffd1ca276 configure: use a semver Range object for checking the Python version 2013-06-30 14:17:46 -07:00
Nathan Rajlich
90cc603406 configure: pass the PATH to the python execFile() call 2013-03-08 17:34:56 -08:00
Nathan Rajlich
5ce4df0034 configure: remove unused "exec" variable 2013-03-08 17:34:46 -08:00
Nathan Rajlich
078ab27480 disable "thin" static libraries by default
Older linkers don't have the -T flag.

This is a somewhat experimental feature, so if user's want "thin"
archives, they can specify `--thin` to revert to the original behavior.
2013-03-08 15:42:19 -08:00
Nathan Rajlich
2cff43f851 Merge pull request #200 from hitsthings/master
Fixes #198
2013-02-28 15:24:20 -08:00
root
8976213a8f configure: prevent ANSI escape codes in stdout of Python version check
Closes #205.
2013-02-28 15:22:42 -08:00
Adam Ahmed
deac0621ce For #198 - if VC2010 x86 exists, still check VC2012 2013-02-18 21:08:53 +11:00
Adam Ahmed
7d953c2a04 For #198 - always check existence of both VC2010Express and VC2012Express so if either prerequisite is met, we can use that build configuration. 2013-02-18 21:01:06 +11:00
Nathan Rajlich
89c135454e configure: don't inherit the process.config.defaults
This has been something I've been thinking about for a while now and I
finally just got my first bug report for it, so I think emptying out
these values is in fact the correct behavior.
2013-02-04 15:28:25 -08:00
Nathan Rajlich
569859e0dc configure: use Python 3 compatible syntax when checking the python version
Closes #166.
2012-12-11 08:52:59 -08:00
Nathan Rajlich
9cafddd9a5 configure: run the bundled gyp rather than the one from the tarball 2012-11-14 16:42:34 -08:00
Nathan Rajlich
66bf1c2d79 configure: remove trailing semicolons 2012-11-13 18:43:46 -08:00
Nathan Rajlich
2e5e6a66a8 configure: add support for "config.gypi" and "commong.gypi" files
When present alongside the "binding.gyp" file. This gives addons a chance to
overwrite default variables specified in the gyp files of the native addon's
gyp dependencies.
2012-11-13 18:41:25 -08:00
Nathan Rajlich
9accea1371 configure: specify msvs version "auto"
This parallels joyent/node@cfbfaaa87d
2012-11-03 17:56:46 -07:00
Nathan Rajlich
d0c058749a configure: fix lint 2012-11-03 17:56:00 -07:00
Frederico Silva
63a3426e5d Add Windows 8 and MSVC 2012 support.
Closes #149.

Squashed commit of the following:

commit 73af25446d6cb71310f54d354d24e27028c9b64b
Author: Frederico Silva <frederico.silva@gmail.com>
Date:   Tue Oct 23 17:46:38 2012 +0100

    add windows 8 sdk check

commit 37077ef13a7d69d7bbfcf563ed13cea28b4c4599
Author: Frederico Silva <frederico.silva@gmail.com>
Date:   Sat Oct 20 17:12:30 2012 +0100

    remove arch check

commit 731b001e333c86c62fc8594eb6b594eb1f0bb07e
Author: Frederico Silva <frederico.silva@gmail.com>
Date:   Sat Oct 20 16:34:02 2012 +0100

    add windows 8 32 bits support

commit 5ce8be893959b092952a9a49990e8ff7a24ae68f
Author: Frederico Silva <frederico.silva@gmail.com>
Date:   Fri Oct 19 02:33:48 2012 +0100

    remove debug log

commit b3705b62b207ceda6c5f1a42e3f7e5500498949c
Author: Frederico Silva <frederico.silva@gmail.com>
Date:   Fri Oct 19 00:56:12 2012 +0100

    check VS2012Express and set toolset
2012-10-29 16:55:14 -07:00
Nathan Rajlich
ff4392265a configure: make a command-line specified python override the env variable
I need better config things...
2012-10-02 11:30:55 -07:00
Nathan Rajlich
4578dac635 configure: remove all "+" signs from the Python version 2012-09-07 11:07:37 -07:00
Nathan Rajlich
d1143352b8 configure: strip "+" signs from the Python version before comparing
Fixes #129.
2012-08-30 14:09:25 -07:00
Nathan Rajlich
85a5009243 configure: use "platform.python_version()" to check the Python version
This should be more resilient across various different Python distributions.

Closes #125.
2012-08-21 16:41:52 -07:00
Nathan Rajlich
4f8b057b89 configure: a little cleanup 2012-08-12 14:31:16 -07:00
Nathan Rajlich
d770292b99 configure: port the gyp_addon login into the "configure" step
Now `tools/gyp_addon` can be removed from the node repo.
Part of joyent/node#3760.
2012-08-12 14:27:59 -07:00
Nathan Rajlich
1219ce6a28 configure: a little tidying up 2012-08-12 13:48:16 -07:00
Brian White
b73730993d Make linking 64-bit addons with VCExpress 2010 + Windows 7.1 SDK work out of the box
Closes #112.
Closes #113.
2012-07-31 12:10:44 -07:00
Nathan Rajlich
d421f0c4c6 configure: log the python executable used 2012-07-31 10:48:37 -07:00
Nathan Rajlich
de2058129a configure: use "osenv.home()" for homedir expansion 2012-07-28 09:56:06 -07:00
Nathan Rajlich
9abf997551 configure: don't use $HOMEDRIVE
It doesn't even represent the value we want (it specifies the drive of the $HOME
dir, not the drive that the system is installed on).

Closes #80.
2012-06-20 17:17:50 -07:00
Nathan Rajlich
036a730f4a configure: a little better python version check
Should fix #82.
2012-06-20 14:49:40 -07:00
Nathan Rajlich
6733a91089 configure: better python version number parsing
Closes #79.
2012-06-15 16:03:55 -07:00
Nathan Rajlich
19ea50e8ad no semicolons 2012-06-15 11:11:29 -07:00
Marc Abramowitz
5dcf6541b5 Check for Python 3 by spawning it and checking the output of '--version'
Closes #76.
2012-06-15 11:04:27 -07:00
Nathan Rajlich
f451c0fab9 remove mkdirp wrapper 2012-06-06 21:35:25 -07:00
Nathan Rajlich
47de81f963 initial take at using 'npmlog' for logging
* adds a '--loglevel' switch to node-gyp which accepts the same values as npm
 * now the '--verbose' flag is simply an alias to '--loglevel=verbose'
 * this simplifies the code a bit, since any logging logic is now removed
 * more log levels! it's mostly verbose() and info() being used
   * still need to go back and move some of logging calls to a better level
2012-06-06 18:01:08 -07:00
Nathan Rajlich
4c17c37a5d a little refactor of the --nodedir stuff 2012-05-14 16:32:27 -07:00
Jeroen Janssen
d314430f8c workaround for ~ homedir expansion 2012-05-14 23:48:51 +02:00
Jeroen Janssen
f64a7af819 rework based on review 2012-05-14 23:24:19 +02:00
Jeroen Janssen
84d2418973 add support for --nodedir option 2012-05-10 20:24:38 +02:00
Nathan Rajlich
fb6d2eecb0 configure: better python fail error message 2012-04-14 13:20:35 -07:00
Nathan Rajlich
aae45396ec remove the hook stuff 2012-04-08 15:47:53 -07:00