-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[help] build healpy on Windows #25
Comments
You mean, should we support building Windows DLLs? |
ok, I don't have experience with Windows compilers either, let's see if somebody that does is willing to collaborate on this. We'd be happy to support the effort. |
we might consider using |
I have temporary access to a Windows box at work now. I got as far as @ARepp. However, I think that it is going to be very hard to build the bundled healpix-cxx and cfitsio sources because there is no easy way to use Anaconda with Cygwin or MSYS. I think that if we want to support Windows, then we must go back to using setuptools itself to build the libraries instead of running A few questions:
|
Oh---another question. Does healpy really have to link against cfitsio, or can we get all of the FITS functionality we need through pyfits/astropy at the Python level? |
Hi, Only healpix_cxx needs to link against cfitsio. Healpy uses healpix_data_io.h for read_pixwin() and read_weight_ring() functions (which read the window and weights data files), so if healpix_cxx is linked against cfitsio, it should be enough. The include file healpix_data_io.h also doesn’t includes fitsio.h itself. read_map() and family are only using pyfits/astropy. Cyrille.
|
I'd be really pleased to see Healpy running on Windows. Many planetariums run on Windows, and an API for python is becoming more common. If needed, I have a number of Windows XP or Windows 8 machines I can test on. |
I wanna ask that does the bug (environment can only contain strings) in installing healpy on windows be fixed? I try install healpy1.9.1 on my windows pc, but it has error that environment can only contain strings. The version of my python is 2.7.11 |
Hi there—I was never able to get it to work, so I ended up using another computer. Thus I don’t know if it’s been fixed or not. Thanks, Andrew From: astroOcean [mailto:[email protected]] I wanna ask that does the bug (environment can only contain strings) in installing healpy on windows be fixed? I try install healpy1.9.1 on my windows pc, but it has error that environment can only contain strings. The version of my python is 2.7.11 — |
Thanks for your reply. Anyway, I can use it on my Linux system. ------------------ Original ------------------ Hi there—I was never able to get it to work, so I ended up using another computer. Thus I don’t know if it’s been fixed or not. Thanks, Andrew From: astroOcean [mailto:[email protected]] I wanna ask that does the bug (environment can only contain strings) in installing healpy on windows be fixed? I try install healpy1.9.1 on my windows pc, but it has error that environment can only contain strings. The version of my python is 2.7.11 — — |
Hello, So I manage to build healpy in Windows 10 using msys2. I have not tested if it is fully functional, but as far as I am concerned it is working great for me, so I thought I should share how I did it. I had to hack a few things, but perhaps I am over-complicating things and I would not be surprised if I am doing something awful or unnecessary in the middle. Some of the steps I did may be fixed from the setup.py, I think. But anyway, this is what I did:
This is where it gets non ideal, since I modified essential files in python, so if you know of a better alternative please let me know!
Well, that is it! next you can just run pip install healpy and it should work. Disclaimer: I am no expert and I probably do not know what I am doing, so please let me know if something is wrong here! Just wanted to comment that one of the things that bugs me the most is that I link a x64 compiler to the mingw32 compiler variable in python. Although this is apparently the way it should be done according to the wiki Hope this helps! |
thanks @Grillard , it would be a great contribution to the project if you can package this into a conda recipe and make a Pull Request to our repository for creating conda packages at https://github.com/conda-forge/healpy-feedstock This way a conda package for windows could be automatically built for |
I had some spare budget that could be used to pay someone a $300 incentive to get healpy conda-forge version working for Windows (but needs to be in the next two months). |
Not sure how relevant this is for the task at hand, but I'm currently assembling a package that contains most of my C++ codes (support library, pocketfft, libsharp, healpix_cxx and more) which has the following characteristics:
Current state is available at https://gitlab.mpcdf.mpg.de/mtr/cxxbase. This may be a good back end for [Edit: remove icpc from the list, it doesn't have sufficient C++17 support yet.] |
Yes, this looks like a good option! |
Due to the pandemic many of us have project students working from home on Windows machines on projects needing healpy. I was able to get it installed via the Windows Subsystem for Linux, and available in a jupyter notebook. In case useful to others I've put instructions below.
sudo apt-get update
pip3 install numpy jupyter matplotlib healpy ipython jupyter
|
thanks @joezuntz! this is very helpful, I added instructions to https://github.com/healpy/healpy/blob/master/INSTALL.rst |
Hello, I want to ask you what you did after seeing Healpy in your browser? I did not find the Healpy folder in the browser according to the above steps, but I found it in other ways. I copy it directly to the corresponding directory of the python installed in Windows. But when import healpy, the _ int_.py function will report an error. |
Still hoping healpy that supports windows. There are so many astro-related packages that rely on healpy and I can't use them. |
Also looking for a windows version - I tried the WSL instructions but they didn't work for me. |
Thanks for the info - I do need healpy though as it is a dependency of the package I need for a collaborative pipeline. |
I also managed to build healpy on Windows 10 using latest MSYS2 in UCRT64 environment: after I got MSYS2 up and running on Windows 10 (following MSYS2 docs), I installed requirements in UCRT64 environment:
Then, I installed healpix 3.82 C++ version following docs, copied lib/ and include/ contents to /ucrt64/lib/ and /ucrt64/include/ Non-trivial task, but manageable. |
https://github.com/msys2/setup-msys2 might help to accomplish this in GitHub Actions. |
Healpy does not have builds for windows; see healpy/healpy#25. `npm run dev` will now work again on Windows, although the ACROSS API endpoints will bne nonfunctional on Windows. Addresses nasa-gcn#2038.
Healpy does not have builds for windows; see healpy/healpy#25. `npm run dev` will now work again on Windows, although the ACROSS API endpoints will bne nonfunctional on Windows. Addresses nasa-gcn#2038.
vcpkg supports building autoconf/automake libraries. @dakota002, would you try that please? |
@Angrite , I saw your post, and was interested in trying to reproduce your build of At present, I've tried using |
should we make available an exe packages for Windows users?
is anybody willing to help?
The text was updated successfully, but these errors were encountered: