[MacPorts] #51695: could not use setup.py to install pyraf using the macports installation of python 2.7
MacPorts
noreply at macports.org
Thu Jun 23 02:47:25 PDT 2016
#51695: could not use setup.py to install pyraf using the macports installation of
python 2.7
-------------------------------+--------------------------------
Reporter: mahajan.smriti@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: |
-------------------------------+--------------------------------
Old description:
> I have installed python 2.7 using macports and it seemed to work fine
> untill I had to install Pyraf. Amongst others the last bit of the
> installation code read:
>
> warning: manifest_maker: standard file '-c' not found
>
> The C compiler used to compile Python gcc-4.2, and
> which is normally used to compile C extensions, is not
> available. You can explicitly specify which compiler to
> use by setting the CC environment variable, for example:
>
> CC=gcc python setup.py <command>
>
> or if you are using MacOS X, you can try:
>
> CC=clang python setup.py <command>
>
> ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in
> /private/var/folders/zt/rfcx53ks5b7_1_773_2jwpp80000gn/T/pip-build-
> ImCNyh/astropy
>
> Now I do have gcc installed, so I tried looking for setup.py and I think
> the one installed with Macports version of Python on my laptop is in
> /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python
> /py-entrypoints/files/
>
> but when I try running python
> /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python
> /py-entrypoints/files/setup.py install
>
> I get
>
> running install
> running build
> running build_py
> creating build
> error: could not create 'build': Permission denied
>
> Not sure how to use setup.py to install Pyraf or for that matter other
> modules. I am using Python 2.7 on Mac OS X 10.9.5
New description:
I have installed python 2.7 using macports and it seemed to work fine
untill I had to install Pyraf. Amongst others the last bit of the
installation code read:
{{{
warning: manifest_maker: standard file '-c' not found
The C compiler used to compile Python gcc-4.2, and
which is normally used to compile C extensions, is not
available. You can explicitly specify which compiler to
use by setting the CC environment variable, for example:
CC=gcc python setup.py <command>
or if you are using MacOS X, you can try:
CC=clang python setup.py <command>
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/private/var/folders/zt/rfcx53ks5b7_1_773_2jwpp80000gn/T/pip-build-
ImCNyh/astropy
}}}
Now I do have gcc installed, so I tried looking for setup.py and I think
the one installed with Macports version of Python on my laptop is in
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python
/py-entrypoints/files/
but when I try running python
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/python
/py-entrypoints/files/setup.py install
I get
{{{
running install
running build
running build_py
creating build
error: could not create 'build': Permission denied
}}}
Not sure how to use setup.py to install Pyraf or for that matter other
modules. I am using Python 2.7 on Mac OS X 10.9.5
--
Comment (by ryandesign@…):
The message stating that Python was compiled with gcc-4.2 is strange. That
would not be the case on OS X 10.9.5. OS X 10.6.8 was the last OS X
version to feature gcc-4.2. Are you sure you are running MacPorts python?
What version of Xcode do you have installed?
Don't try to directly run files inside the MacPorts ports tree; they're
not for you; they're for MacPorts to use when installing ports. Each
Python module or project will typically include its own setup.py file
tailored to that project's needs; that's the setup.py you'll be using to
build that project.
Don't forget to use WikiFormatting when writing in Trac.
--
Ticket URL: <https://trac.macports.org/ticket/51695#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list