-
Notifications
You must be signed in to change notification settings - Fork 44
Windows Conda package #276
Comments
Which version are you looking for? I thought there was a Conda package for 9.2.5. |
There are Conda packages for 9.2.5 and 9.3.0, but these are only for Linux. I've no idea if it would be easy to make for Windows. We don't have cppTango Conda packages for Windows either, which may be required... |
@NexeyaSGara and @izadworny can you two comment on this as PyTango Windows experts? |
Hi, I also agree it could be useful. You are not the first to ask :-). I can have a try and how it goes. |
@tiagocoutinho What is in the exe files you uploaded to pypi - are they like wheels inside an exe? How exactly did you make them? Could they be installed in a Conda environment on Windows? |
There is no wheel. After installation you end up with a
I haven't tried. My guess is, since it is not a wheel, pip does not support it. I can have a look and see how hard it is to make a wheel. If I succeed there might be a better chance of being able to make a conda package out of it. |
I have uploaded wheels to Pypi. On windows, Conda packages will require a little more love :-) When #277 is accepted we can think of an official 9.3.1 |
I made a pytango package for Windows some time ago (available on our
Recompiling might not be actually necessary to build the conda package. |
Thanks for the hint @sdebionne. I think since we have a wheel it should be even simpler. |
@sdebionne @tiagocoutinho |
@vxgmichel Hi Vincent! Is this a requirement for "symmetry" with the linux package or a guideline for Conda packaging? AFAIK, the Windows C++ tango package is also statically linked so this would need to be modified as well. Does anyone know the rationale for statically linking on Windows in the first place? |
To install pytango outside a conda environment, pytango needs to be statically linked because:
Having conda makes life a little easier to create dynamically linked PyTango. But it would require a lot of effort to prepare a conda build environment which would create a dynamically linked version of PyTango. Would it be worth the effort? What downside do you see in providing a statically linked PyTango on conda (besides +RAM and +disk space) @vxgmichel? |
Hi @tiagocoutinho :)
Is it really that bad? I had the intuition that conda-build would help with most of the issues you described. There are probably windows recipes for boost python projects on conda-forge, maybe getting inspiration from them would help?
I can see of few points:
But since I'm not the person doing all the work, it's easy for me to say :) |
Hi @vxgmichel , This is the typical thing which starts as a simple task and ends up eating a lot of your time :-). I agree with all your points. In the meantime, ok for me to name the conda package |
+1 for naming the static version pytango-static @tiagocoutinho thanks for working on this! |
That might be a good use case for Conda Features? |
Indeed. So we should:
Does everyone agree? The windows build seems to be working fine so a new package could come out soon. |
@tiagocoutinho I have never used this Features feature before but AFAIU the feature and metapackage could be just |
Thanks for the Windows package for v9.3.1dev1. Is there any chance to get one for python 3.6 and 3.7 as well? I could not find the source of the recipe in the repo, is it in a external repo? Is there any plan to release pre-compiled wheels on PyPi as well? |
The pre-release on PyPI already includes wheels for Python 3.6 and 3.7:
AppVeyor + cmake is used to generate the wheels. https://github.com/tango-controls/pytango/blob/develop/appveyor.yml. The repo's readme has a badge linking to the latest AppVeyor builds: https://ci.appveyor.com/project/tiagocoutinho/pytango Or are you talking about Conda?
As mentioned above, there are wheels on PyPi. Are these useful? Future releases of pytango should include wheels like these. |
Sorry, I was talking about conda. The |
Hi, |
@laurent-claustre and @sdebionne As of v9.3.1, there are conda packages for Windows (64-bit). We'd appreciated some feedback - do they work for you? They are built from the wheels which used cppTango 9.3.3, so, if I understand correctly, having a different version of cppTango installed in conda won't make a difference. |
Thank you @tiagocoutinho for the conda package for Windows. I did a quick test with Lima and it works for me. In the near future, I am going to remove my hand-made pyTango package for Windows from the esrf-bcu channel to avoid confusion. You are right, since cppTango is currently linked statically on Windows, a cppTango package can be installed along pyTango without interfering. |
Thanks for testing, @sdebionne.
This might also lead to confusion if someone expects PyTango to use the separately installed cppTango package. Anyway, glad it works. |
Me too :-) Thanks for testing |
I did test with Lima simulator and basler cameras, it works fine. |
Hi,
There is no Conda package for Windows on tango-controls Conda channel.
Would be great to have one.
Thanks in advance !
The text was updated successfully, but these errors were encountered: