Closed pllim closed 7 years ago
@pllim it looks like you forgot to pull the submodule data
I did git submodule update --init -- cextern/xpa
and still get the following error. I have checked that both cextern
and astropy_helpers
folders are not empty.
Freezing version number to imexam\version.py
Compiling wrappers/xpa.pyx because it changed.
[1/1] Cythonizing wrappers/xpa.pyx
C:\...\setuptools-27.2.0-py3.5.egg\setuptools\dist.py:331: UserWarning: Normalizing '0.6.3dev263' to '0.6.3.dev263'
running install
running bdist_egg
running egg_info
creating imexam.egg-info
writing top-level names to imexam.egg-info\top_level.txt
writing dependency_links to imexam.egg-info\dependency_links.txt
writing entry points to imexam.egg-info\entry_points.txt
writing imexam.egg-info\PKG-INFO
writing manifest file 'imexam.egg-info\SOURCES.txt'
reading manifest file 'imexam.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'scripts'
warning: no previously-included files found matching 'cextern\xpa\man'
warning: no previously-included files found matching 'cextern\xpa\doc'
warning: no previously-included files found matching 'cextern\xpa\notes'
warning: no previously-included files matching '*.o' found anywhere in distribution
no previously-included directories found matching 'astropy_helpers\build'
no previously-included directories found matching 'docs\build'
no previously-included directories found matching 'docs\api'
no previously-included directories found matching 'build'
no previously-included directories found matching 'dist'
writing manifest file 'imexam.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\imexam
copying imexam\conftest.py -> build\lib.win-amd64-3.5\imexam
copying imexam\connect.py -> build\lib.win-amd64-3.5\imexam
copying imexam\ds9_viewer.py -> build\lib.win-amd64-3.5\imexam
copying imexam\ginga_viewer.py -> build\lib.win-amd64-3.5\imexam
copying imexam\imexamine.py -> build\lib.win-amd64-3.5\imexam
copying imexam\imexam_defpars.py -> build\lib.win-amd64-3.5\imexam
copying imexam\math_helper.py -> build\lib.win-amd64-3.5\imexam
copying imexam\util.py -> build\lib.win-amd64-3.5\imexam
copying imexam\version.py -> build\lib.win-amd64-3.5\imexam
copying imexam\xpa_wrap.py -> build\lib.win-amd64-3.5\imexam
copying imexam\_astropy_init.py -> build\lib.win-amd64-3.5\imexam
copying imexam\__init__.py -> build\lib.win-amd64-3.5\imexam
creating build\lib.win-amd64-3.5\imexam\tests
copying imexam\tests\setup_package.py -> build\lib.win-amd64-3.5\imexam\tests
copying imexam\tests\test_imexamine.py -> build\lib.win-amd64-3.5\imexam\tests
copying imexam\tests\__init__.py -> build\lib.win-amd64-3.5\imexam\tests
copying imexam\tests\coveragerc -> build\lib.win-amd64-3.5\imexam\tests
running build_ext
error: [WinError 2] The system cannot find the file specified
This is because build_ext
explicitly calls make
, but can't find it in %PATH%
so it dies (very ambiguously).
XPA also requires some manual patches to the code in order to build on Windows. I remember reading about it in their docs not too long ago.
So in English, it means imexam
currently cannot build on Windows unless this magical patch is applied?
For the record, I just want to use this with Ginga, which does not need XPA. Is there a way to make cextern/xpa
success optional, i.e., imexam
will still install without XPA?
I think there's also the issue of the windows C compiler she has on her system, and having to point to an explicit one, including all these goodies: https://github.com/cython/cython/wiki/CythonExtensionsOnWindows
I have on my list this week to try out the latest release of xpa and haven't read through the docs yet, perhaps they've added the windows the patches.
also on the list is to see if I can do this in appveyor
(note: I haven't used windows since XP :-O )
Let me think about the best way to make an optional build with no cython
I think my Windows 7 is using Visual C++ 2015, as I had to install that to build Astropy from source. (Let me know if there is a specific command I can use to find out for sure. My win-fu
is not very strong.)
When I do gcc --version
, it gives 4.7.0 (experimental)
. Not sure if that is provided by Visual C++ install, or I somehow installed that manually in the past. (This is an old laptop.)
I have Cython 0.25.2 from Anaconda distribution.
@jhunkeler , did you ever get this to install on that Windows VM?
Using Anaconda on Windows 7 64-bit. Since AstroConda has no Windows distribution, my only option is to install from source, but even that failed.