Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Out of curiosity I just tried this on Ubuntu 10.04. I don't have a pip or setup.py solution for you, but it isn't too hard.</p> <p>I think the secret is to set the PYTHON variable to configure to point to the python executable in your virtualenv. I built omniORB and omniORBPy from source and installed them to a directory under my virtualenv (by specifying the <code>--prefix</code> option to configure).</p> <p>You then have to put the <code>site-packages</code> directory that gets created under the omniORB install directory on your <code>PYTHONPATH</code>. I chose to do this by creating a <code>omniorb.pth</code> file in my virtualenv's <code>site-packages</code> folder (more on this below).</p> <p>Here is the shell history of what I did. I am working out of a directory <code>/home/brian/coding/python/virtualenvs</code>. You'll have to mentally adjust paths, etc. for your environment.</p> <pre><code> virtualenv omniORB cd omniORB/ . bin/activate cp /home/brian/Downloads/omni* . tar xvfj omniORB-4.1.6.tar.bz2 tar xvfj omniORBpy-3.6.tar.bz2 mkdir omniORB_install cd omniORB-4.1.6/ mkdir build cd build ../configure --prefix=/home/brian/coding/python/virtualenvs/omniORB/omniORB_install/ PYTHON=/home/brian/coding/python/virtualenvs/omniORB/bin/python make make install cd ../../omniORBpy-3.6/ mkdir build cd build ../configure --prefix=/home/brian/coding/python/virtualenvs/omniORB/omniORB_install/ PYTHON=/home/brian/coding/python/virtualenvs/omniORB/bin/python --with-omniorb=/home/brian/coding/python/virtualenvs/omniORB/omniORB_install/ make make install </code></pre> <p>Now here is that <code>omniorb.pth</code> file I mentioned earlier. Change directory to the top of your virtualenv. Create <code>omniorb.pth</code> such that it looks and is located like this:</p> <pre><code>$ cat lib/python2.6/site-packages/omniorb.pth /home/brian/coding/python/virtualenvs/omniORB/omniORB_install/lib/python2.6/site-packages </code></pre> <p>Now, inside my activated virtualenv:</p> <pre><code>$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import CORBA &gt;&gt;&gt; CORBA.__file__ '/home/brian/coding/python/virtualenvs/omniORB/omniORB_install/lib/python2.6/site-packages/omniORB/CORBA.pyc' &gt;&gt;&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload