Skip to main content

Install node.js into your virtualenv

Project description

virtual-node
============

This package is a wrapper around the `nose.js`_ sources and provides a
convenient way to install it directly into your ``virtualenv`` instead
of globally. I created this package to play around with a simple
installation for Django projects that us `django-compressor`_'s
precompiler to generate CSS from `less`_ files.

The install routine used in ``setup.py`` is adapted from the
`nodeenv`_ package provided by Eugene Kalinin. The difference is that I want
to install node.js into an existing ``virtualenv`` instead of creating
a specific environment for node.

I am using this in combination with `virtual-less`_ which installs the
``lessc`` commandline tool into a virtual environment.

.. _`less`: http://lesscss.org
.. _`node.js`: http://nodejs.org/
.. _`virtual-less`: http://github.com/elbaschid/virtual-less
.. _`django-compressor`: https://github.com/jezdez/django_compressor


Installation
------------

Installing the ``node`` into your virtual environment is as easy as::

$ pip install virtual-node

that should be it. You should now be able to run ``node`` from within
your virtual environment even if you have it globally installed. You
can make sure that this is the case::

$ which node
/home/elbaschid/.virtualenvs/lessc-test/bin/node

Issues & Contributions
----------------------

Please let me know if you have any issues, please raise an issue
here on the github project.

If you want to contribute, fork this repository and open a pull
request with your changes. I'd be happy to include them.

License
-------

Oscar is released under the permissive `New BSD license`_.

.. _`New BSD license`: https://github.com/elbaschid/virtual-less/blob/master/LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

virtual-node-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file virtual-node-0.0.1.tar.gz.

File metadata

File hashes

Hashes for virtual-node-0.0.1.tar.gz
Algorithm Hash digest
SHA256 06d6ecc8a0b482bca6c76666d34e80db31f02adf10e0339e456e9fc369d8f4ac
MD5 4c0a3a1ce404dcbbfe4924ffa28adce5
BLAKE2b-256 fa7df5a3cef6110ef2ec314c1df8eeb8b14befac52993a20def587851e273e78

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page