How to setup python-smbus in the virtual env? Pip does not find any appropriate package. Is there a way to make main python installation's libraries visible to virtual env?
The various releases are listed here the Debian Wheezy python-smbus page.
I assume you can just install via apt-get, although I believe you need to i2c tools package as well:
sudo apt-get install i2c-tools
sudo apt-get install python-smbus
When you create your virtual environment you should be able to inherit the system site packages using the --system-site-packages flag for example:
virtualenv --system-site-packages my_env
You can read more at the virtualenv.org website.
Incase I misunderstood your question...
If you are asking how to install into your virtual environment from a package server that is pip compatible and contains the package (python-smbus) you can update your pip.conf file to include it.
Navigate to the .pip directory under your users root folder. Then edit the pip.conf file, for example:
You can then add an additional package repository in here:
index-url = path/to/package/server
Installing it in your virtual environment is then as easy as:
./bin/pip install <package>
smbus2 instead. It is a pure python replacement you can just install with
pip as normal. Works fine for me.