Opened 8 years ago
Last modified 8 years ago
#51695 new defect
could not use setup.py to install pyraf using the macports installation of python 2.7 — at Version 1
Reported by: | SmritiM84 | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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
Change History (1)
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
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.