question about setup.py and CC and LDSHARED env variables on Solaris

S

srf99

Recently I was trying to compile/install cx_Oracle on our Solaris
system.

When I ran "python setup.py build" I got the following message:
"/usr/ucb/cc: language optional software package not installed"

I Googled around and discovered that this is a frequently-encountered
issue on Solaris systems, because Solaris systems don't have the
Solaris C compiler installed by default. (We certainly don't. We
use gcc instead.)

After poking around in the source code for distutils, I figured out
that I could get setup.py to work if -- *before* running setup.py -- I
set two environment variables:

export CC=gcc
export LDSHARED="gcc -G"

Afterward, in searching the Web, I couldn't find any documentation to
tell me that I had to do this, or why, or when.

So my question is:
Does anyone know the location of documentation (about distutils, or
about using setup.py) that tells you

- that you have to do this,
- why you have to do it,
- the circumstances under which you have to do it?

I'm a Unix newbie, so I may very well have missed something obvious.

Thanks in advance,
-- Steve Ferg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top