{ "info": { "author": "Sebastian Vetter", "author_email": "sebastian@roadside-developer.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: POSIX", "Programming Language :: JavaScript", "Topic :: Software Development :: Libraries" ], "description": "============\nvirtual-node\n============\n\nContinuous integration status:\n\n.. image:: https://secure.travis-ci.org/elbaschid/virtual-node.png\n :target: http://travis-ci.org/#!/elbaschid/virtual-node\n\n\nThis package is a wrapper around the `node.js`_ sources and provides a\nconvenient way to install it directly into your ``virtualenv`` instead\nof globally. I created this package to play around with a simple\ninstallation for Django projects that use `django-compressor`_'s\nprecompiler to generate CSS from `less`_ files.\n\nThe install routine used in ``setup.py`` is adapted from the\n`nodeenv`_ package provided by Eugene Kalinin. The difference is that I want\nto install node.js into an existing ``virtualenv`` instead of creating\na specific environment for node.\n\nI am using this in combination with `virtual-less`_ which installs the\n``lessc`` commandline tool into a virtual environment.\n\n.. _`less`: http://lesscss.org\n.. _`node.js`: http://nodejs.org/\n.. _`nodeenv`: http://github.com/ekalinin/nodeenv\n.. _`virtual-less`: http://github.com/elbaschid/virtual-less\n.. _`django-compressor`: https://github.com/jezdez/django_compressor\n\n\nInstallation\n------------\n\n.. warning:: This will download the node.js sources and compile it into your\n virtualenv. Make sure that you have all required build dependencies for\n node.js installed before installing virtual-node. The installation will\n take quite a long time to run for the first time around, so have a coffee\n or a beer handy.\n\nInstalling the ``node`` into your virtual environment is as easy as::\n\n $ pip install virtual-node\n\nIf you had node.js installed globally previous to installing ``virtual-node``,\nrunning ``npm`` or ``node`` will still point to your global installation.\nTo make sure you're using the newly installed ``node``, deactivate your\nvirtualenv and re-activate it.\n\nYou can check that ``virtual-node`` has ``node`` pointing to the right place by\nrunning ``which node`` in your virtual environment:\n\n $ which node\n\nYour output should look something like:\n\n /home/elbaschid/.virtualenvs/lessc-test/bin/node\n\n.. note:: virtual-node is explicitly meant to be installed into a virtualenv\n and not into your global environment. This has not been tested and will\n most likely not work or cause problems. Only try it if you know what you\n are doing.\n\nInstall specific version of ``node``\n++++++++++++++++++++++++++++++++++++\n\nVersion **0.1.0** add support for the environmental variable ``NODE_VERSION``\nthat make it possible to specify the node version to be installed. If you want\nto install version ``0.10.0``, simply set ``NODE_VERSION=0.10.0`` and run ``pip\ninstall`` afterwards::\n\n $ export NODE_VERSION=0.10.0\n $ pip install virtual-node\n\nor even just::\n\n $ NODE_VERSION=0.10.0 pip install virtual-node\n\nIn addition,it is possible to specify the version of ``node`` using the\n``NPM`` packaging format ``package.json`` (support added in version **0.0.3**).\nTo use this feature you need to specify the current project directory in the\nenvironment variable ``PROJECT_DIR`` **before** you install ``virtual-node``.\nYou can simply export it on the commandline::\n\n $ export PROJECT_DIR=/path/to/my/project\n\nor define it in your ``virtualenv``/``virtualenvwrapper`` scripts.\n\nDuring installation, the setup script will attempt to retrieve the desired\nversion of node from a file named ``package.json`` which is also used by\n``NPM`` [and is explained in detail on their website](https://npmjs.org/doc/json.html).\n\nA sample file to specify version ``0.10.0`` would look like this::\n\n {\n \"name\": \"my-project\",\n \"version\": \"0.0.1\",\n \"engines\": {\n \"node\": \"==0.10.0\"\n }\n }\n\nThe version of the engine to be used is the version that ``virtual-node``\nwill use to install ``node``. **Note:** you have to specify an exact version\n(using ``==``) otherwise the version will be ignored.\n\n\nIssues & Contributions\n----------------------\n\nPlease let me know if you have any issues, please raise an issue\nhere on the github project.\n\nIf you want to contribute, fork this repository and open a pull\nrequest with your changes. I'd be happy to include them.\n\nLicense\n-------\n\nThis package is released under the permissive `New BSD license`_.\n\n.. _`New BSD license`: https://github.com/elbaschid/virtual-less/blob/master/LICENSE\n\n\n.. image:: https://d2weczhvl823v0.cloudfront.net/elbaschid/virtual-node/trend.png\n :alt: Bitdeli badge\n :target: https://bitdeli.com/free\n\n\n\n=========\nChangelog\n=========\n\n0.1.0\n-----\n\n* Add the ability to specify the version of node as an environmental variable\n using ``NODE_VERSION``. This makes it a lot easier to define the version of\n node that will be installed.\n* Update the default version of node to **0.10.26**, the most recent version at\n the time of writing.\n\n0.0.4\n-----\n\n* Adds strict version checking to prevent some version comparison issues.\n* Corrects issue with ``os.path.join`` when ``PROJECT_DIR`` is not specified.\n\n0.0.3\n-----\n\n* Drop calls of commands ``curl`` and ``tar`` in favour of python modules to\n make sure that this still works on machines without those commands installed.\n* Add support for ``package.json`` file to specify a custom version of\n ``node``. This allows to re-align the versioning of ``virtual-node`` with\n python conventions.\n\n0.0.2\n-----\n\n* Adds check for existing version of virtual-node\n* Fix issues when used as dependency in ``setup.py``\n* Switch from using ``install`` to ``build`` command\n\n0.0.1\n-----\n* Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/elbaschid/virtual-node", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "virtual-node", "package_url": "https://pypi.org/project/virtual-node/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/virtual-node/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/elbaschid/virtual-node" }, "release_url": "https://pypi.org/project/virtual-node/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Install node.js into your virtualenv", "version": "0.1.0" }, "last_serial": 1007219, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "4c0a3a1ce404dcbbfe4924ffa28adce5", "sha256": "06d6ecc8a0b482bca6c76666d34e80db31f02adf10e0339e456e9fc369d8f4ac" }, "downloads": -1, "filename": "virtual-node-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4c0a3a1ce404dcbbfe4924ffa28adce5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3309, "upload_time": "2012-10-15T14:45:14", "url": "https://files.pythonhosted.org/packages/fa/7d/f5a3cef6110ef2ec314c1df8eeb8b14befac52993a20def587851e273e78/virtual-node-0.0.1.tar.gz" } ], "0.0.1a": [ { "comment_text": "", "digests": { "md5": "4029ff645737618266c45bf7d8e25d2c", "sha256": "fe01f96369fa5af92a346d13e31708bc85e2cf966132106b662eeb3b5626717e" }, "downloads": -1, "filename": "virtual-node-0.0.1a.tar.gz", "has_sig": false, "md5_digest": "4029ff645737618266c45bf7d8e25d2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3031, "upload_time": "2012-10-15T14:13:42", "url": "https://files.pythonhosted.org/packages/48/ff/3997a3093af4f5c54add97931adc1899cd31c2d4e4fb08486440fd32402c/virtual-node-0.0.1a.tar.gz" } ], "0.0.2-0.8.11": [ { "comment_text": "", "digests": { "md5": "faa6136b0bd1ce5929cbe92a8db134bc", "sha256": "9b4762ebdd1f0c6e21c5ee267040cb4cf9a52c13ad9be08f07bc8368da0aebde" }, "downloads": -1, "filename": "virtual-node-0.0.2-0.8.11.tar.gz", "has_sig": false, "md5_digest": "faa6136b0bd1ce5929cbe92a8db134bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5647, "upload_time": "2013-03-16T12:27:30", "url": "https://files.pythonhosted.org/packages/83/41/f3fe6e109e32a84dd963289abbe9bdaeeb97b4dfdd3fd58234bdddc2892f/virtual-node-0.0.2-0.8.11.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "2a2eb105a5289bd4522d66fb6b32d0fb", "sha256": "26ac6260c5c20153f2da54c3895e4a6865afb3b9ce4190362df5391b8300a7cc" }, "downloads": -1, "filename": "virtual-node-0.0.3.tar.gz", "has_sig": false, "md5_digest": "2a2eb105a5289bd4522d66fb6b32d0fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6509, "upload_time": "2013-03-19T01:36:53", "url": "https://files.pythonhosted.org/packages/14/94/8d2ef033c2bcce7ee631d02b36e7a22765ebb50b7781f07729e085f326bf/virtual-node-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "9f9db6a6bbd56e40f46eba13dbbe2ac6", "sha256": "e275093fc9b01489b4ea42fbfa9304d219bb467b465d43496249f0cf75f3f40d" }, "downloads": -1, "filename": "virtual-node-0.0.4.tar.gz", "has_sig": false, "md5_digest": "9f9db6a6bbd56e40f46eba13dbbe2ac6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6676, "upload_time": "2013-06-24T01:03:47", "url": "https://files.pythonhosted.org/packages/6d/56/c2f9a0546195ce50802c2c2bc847bcd747c1755e3f96144b7f394c319cd9/virtual-node-0.0.4.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "b4d4d0f351f9d9963dfdcb0be3f58254", "sha256": "b7cf1702b2479a403b13537270d5629e5d07211b30ba8ef7cde0336732a3a647" }, "downloads": -1, "filename": "virtual-node-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b4d4d0f351f9d9963dfdcb0be3f58254", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7185, "upload_time": "2014-02-21T05:33:01", "url": "https://files.pythonhosted.org/packages/da/ca/598eb616dc9c5011c2f7e274be60f04556bb952730f36ec3641246d0e59c/virtual-node-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4d4d0f351f9d9963dfdcb0be3f58254", "sha256": "b7cf1702b2479a403b13537270d5629e5d07211b30ba8ef7cde0336732a3a647" }, "downloads": -1, "filename": "virtual-node-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b4d4d0f351f9d9963dfdcb0be3f58254", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7185, "upload_time": "2014-02-21T05:33:01", "url": "https://files.pythonhosted.org/packages/da/ca/598eb616dc9c5011c2f7e274be60f04556bb952730f36ec3641246d0e59c/virtual-node-0.1.0.tar.gz" } ] }