Re: [CMake] CMake for Python 3
2013/3/26 Pietro Moras : > My fault, certainly, dear Mr. Eric Noulard, but evidently my question has > not been understood. No "fault" at all. >The question here is NOT how to distribute a Python (3) source project, > but the setup for an ordinary “.exe” program, capable of autonomous > execution as any normal program as commonly intended. That is, without > requiring the presence of the programming language, be it Python 3 or any > other, used for developing it. I think I get it. But it is not in the feature of CMake to transform a python application into an autonomous executable. > You might be interested in knowing that I've already explored other tools, > such as cx_Freeze, finding it utterly primordial, outdated and unreliable. Then I think you are on your own and CMake will not help you. http://stackoverflow.com/questions/8786203/compiling-python-to-native-code > Thus my suspect that Python (3) is simply not fit for such a goal, as nobody > bothered to develop a serious setup maker and packager for it. I agree that Python wasn't "meant" or design to be easily compilable to native executable. I guess this is not a "missing feature", this was not targeted in the first place. Other scripting languages (like Ocaml) include that feature by design. > Anyhow, I apologize in case this is not the right List for such a question. This is the appropriate list for CMake questions, now you know that CMake does not include the feature you need. -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] CMake for Python 3
My fault, certainly, dear Mr. Eric Noulard, but evidently my question has not been understood. The question here is NOT how to distribute a Python (3) source project, but the setup for an ordinary “.exe” program, capable of autonomous execution as any normal program as commonly intended. That is, without requiring the presence of the programming language, be it Python 3 or any other, used for developing it. You might be interested in knowing that I've already explored other tools, such as cx_Freeze, finding it utterly primordial, outdated and unreliable. Thus my suspect that Python (3) is simply not fit for such a goal, as nobody bothered to develop a serious setup maker and packager for it. Anyhow, I apologize in case this is not the right List for such a question. - P.M. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] CMake for Python 3
2013/3/25 Pietro Moras > > I'd love to be reassured that CMake (+CPack) is a “right” tool for: > >Building the distribution package for a complex Python 3 (+PyQt) > application, mainly aimed at the Windows platform. If your application is pure python why would you use CMake instead of pure python tools? Like Python distutils? Or may be python packages extending it: http://stackoverflow.com/questions/10712809/how-to-require-and-install-a-package-using-python-3-x-distutils > My goal is a single > install file that, out of an original Python 3 application, will generate an > ordinary “.exe” executable program, possibly verifying in advance if the > target environment has got all the required pre-requisites, so to possibly > grant them when missing. AFAIK CMake and CPack do not deal with that kind of work. Doesn't look you for something like: http://cx-freeze.sourceforge.net/ > That's my goal and, of course, I'd love to be positively encouraged to > undertake such a CMake adventure before even beginning to toil at it, of > course... Of course it would be sad to discover I've taken the wrong way > only at the end of it. If ever you made it to the end then I would have been a success already right? Just kidding but AFAI Understand your goal does not fits CMake/CPack features. >Gratefully, yours -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] CMake for Python 3
I'd love to be reassured that CMake (+CPack) is a “right” tool for: Building the distribution package for a complex Python 3 (+PyQt) application, mainly aimed at the Windows platform. My goal is a single install file that, out of an original Python 3 application, will generate an ordinary “.exe” executable program, possibly verifying in advance if the target environment has got all the required pre-requisites, so to possibly grant them when missing. That's my goal and, of course, I'd love to be positively encouraged to undertake such a CMake adventure before even beginning to toil at it, of course... Of course it would be sad to discover I've taken the wrong way only at the end of it. Gratefully, yours - P.M. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake