It looks like you're new here. If you want to get involved, click one of these buttons!
Hello,
It appears that the OSX version of KLayout uses the default system Python installation. I am trying to change it to a separate copy in which I am adding missing modules. Is there a way to point it to another installation? Or is this entered during the compile process?
I have python installed:
brew install python
anaconda
Also, there is the question of version 2 vs 3.
Comments
Hello,
The recent binary packages of "0.24.3" and "0.24.4" for OSX were built with the script below.
The reason I used the default system Ruby/Python installation* is the issue:
Now that I have installed "El Capitan" on a virtual machine without any software development
environment including Xcode, I can confirm that a binary can start in such a real end-user environment.
(* please note that Qt4 is from Mac Ports)
Another script below is for using different version of Ruby/Python from Mac Ports.
Since you are working in you own software development environment, I think it's worth trying to
build the latest KLayout from the source code.
Kazzz
Hello,
For testing purpose, I have built "0.24.4" with the second script above.
That is, both Ruby and Python are taken from the latest Mac Ports installation.
A binary package was also made. One difference is that this binary package
contains not only Qt4 frameworks but also Python frameworks and Ruby's dylib.
More precisely, the dependency of klayout of this build is:
As expected, "klayout.app" normally starts on Yosemite where the binary/package was made.
On El Capitan, however, it does not start showing the message below:
This implies that more (may not all) components of Ruby and Python have to be
packed into the binary packages on trial and error basis, which looks a tough job.
Kazzz
Hi Kazzz,
thanks very much for providing the new binary package. I have uploaded the package to the server.
The message you received is familiar to me. I got it myself on Windows and Linux when $PYTHONPATH is set to an invalid location, which was inevitable on some installations. Hence I changed the name of the variable to $KLAYOUT_PYTHONPATH, so there is no clash with other programs installed on the system. Maybe you need to set this variable to the same value than $PYTHONPATH (if it's set).
But of course you may be right as well - the package might not be complete as the Ruby message indicates.
Thanks again and best regards,
Matthias
Thanks Kazzz.
It would be nice if KLayout could be configured to use the built-in Ruby/Python (for end-users), and the same binary could be configured with an environment variable to use a separately installed Python.
Anyway, I am trying to avoid making big changes to the installation procedure / requirements, so that my end-users don't need to do anything complicated.
regards
Lukas