`configure` script fails to find `python2.7-config`

Create issue
Issue #11 new
Brandon T. Willard created an issue

When installing PythonInR within a virtualenvwrapper environment, I get the following error:

d> install.packages("PythonInR")
Installing package into ~/R-dev
(as lib is unspecified)
trying URL 'http://cran.us.r-project.org/src/contrib/PythonInR_0.1-3.tar.gz'
Content type 'application/x-gzip' length 68977 bytes (67 KB)
downloaded 67 KB

Loading required package: parallel
* installing *source* package PythonInR ...
** package PythonInR successfully unpacked and MD5 sums checked

python version is < 3
./configure: 1: ./configure: ~/.virtualenvs/hsplus-r-pkg-env/bin/python2.7-config: not found
./configure: 1: ./configure: ~/.virtualenvs/hsplus-r-pkg-env/bin/python2.7-config: not found

I couldn't find anything that implied python2.7-config should or shouldn't be in the virrtualenv's bin/, so I can't say this is really a PythonInR problem. Regardless, it looks like the origin is here. In this context

$ python -c "import sys;import os;sys.stdout.write(os.path.dirname(sys.executable))"
$ ls ~/.virtualenvs/hsplus-r-pkg-env/bin
activate       activate_this.py  f2py             pip     postactivate    predeactivate  python2.7
activate.csh   easy_install      get_env_details  pip2    postdeactivate  python         python-config
activate.fish  easy_install-2.7  isympy           pip2.7  preactivate     python2        wheel

Is it reasonable to use python-config, or just fall back to that when python*-config isn't found? Do you know if there should be a python2.7-config in that directory (there's one in my system path)?

Comments (1)

  1. Log in to comment