summaryrefslogtreecommitdiff
path: root/gyp_main.py
AgeCommit message (Collapse)Author
2013-09-04Convert setup.py to use setuptoolssbaig1@bloomberg.net
Due to r1667, setup.py was left broken installing 'gyp' as a script, which happened to be the *nix invocation script wrapper. By converting setup.py to use setuptools, when the gyp script is installed, the appropriate file name will be generated to match the local conventions on both *nix and Windows platforms. This change required adding a proxy function in gyp/__init__.py, called 'script_main', which takes 0 arguments as required by setuptools that directly ends up calling 'main' passing along sys.argv[1:]. Other areas in gyp/__init__.py and gyp_main.py were modified to use this new function as well. The MANIFEST file was deleted since setuptools automatically includes the correct files in source distributions. Contributed by ericvw@gmail.com BUG=None R=scottmg@chromium.org Review URL: https://codereview.chromium.org/22816026 git-svn-id: http://gyp.googlecode.com/svn/trunk@1713 78cadc50-ecff-11dd-a971-7dbc132099af
2013-07-09fix +x on gyp_main.pyscottmg@chromium.org
Should fix -regen tests on Mac under make. R=thakis@chromium.org Review URL: https://codereview.chromium.org/18402004 git-svn-id: http://gyp.googlecode.com/svn/trunk@1672 78cadc50-ecff-11dd-a971-7dbc132099af
2013-07-08Make root invocation less crazy so that multiprocessing works on Windowsscottmg@chromium.org
Previously gyp.bat runs "python gyp" and "gyp" imports "gyp" expecting to get pylib/gyp/__init__.py. Multiprocessing tries to fork and doesn't find the entry point named gyp because it doesn't search for non-.py extensions. Instead, make non-Windows match with a wrapper 'gyp' in bash, and make the python entry point gyp_main.py so that importing works more normally. Also, remove "Using parallel processing..." message so that tests pass, otherwise they complain that there was output on stderr. This was failing on other OSs too. R=thakis@chromium.org BUG=154205 Review URL: https://codereview.chromium.org/18271010 git-svn-id: http://gyp.googlecode.com/svn/trunk@1667 78cadc50-ecff-11dd-a971-7dbc132099af