-
Notifications
You must be signed in to change notification settings - Fork 112
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
--sip-dir isn't accepted, contratry to what the INSTALL file says #307
Comments
|
Please read the docs carefully. You need a separate build_ext phase with that option (don't blame me - that's how distutils works). The environment variable also works for me and there is definitely code to read it. Are you sure you specified it correctly? |
|
It rejects the |
|
You need to run the build_ext separately, before the main build if you want to use the command line option. Note that the options come after the command (here build_ext). I've also tested |
|
I patched the value in: and it still fails: In the Arch port I see that they don't perform any special steps, they just run 'build': https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=veusz-git Do you know why the above patching doesn't solve the problem? I think this is proof-positive that this argument is broken, and doesn't matter. The project just assumes the location Could you please tell me where should I patch the Sip location in as a workaround so that I can just fix the port? |
|
Well, it might be because they support the deprecated (but reliable) method to find sip from the sip configuration through the sipconfig module. I wish the sip/pyqt people hadn't removed this. What gets printed in the sip command line? If I put a nonsensical --sip-dir option on the command line it is obviously being used: |
|
Arch doesn't do the |
|
When I add |
|
Veusz setup uses a number of ways to get the sip location. It will stop when it finds one:
Any of these is fine. Regarding the test you just ran with build_ext, there is a /x/ in front of the path. Is this intended? |
This is an invalid path, and I've set to |
|
I'm a bit confused. Is that invalid path patched into the source or given as --sip-dir? It does seem to be using the path - it's on the sip command line being run. |
|
I gave /x to --sip-dir in place of /foo/bar and it didn't use it. |
|
Where does the /x//usr/local/... come from in the sip command above? |
|
Now I use |
|
So it looks like the option is working - the directory is being passed to sip - it's just that the files are not in the correct place. What is the directory structure below /usr/local/share/PyQt5/3.6/sip? |
|
|
It looks like FreeBSD has a really weird packaging of the sip files. I've never seen that layout before. Veusz setup assumes that the sip files are in a PyQt5 subdirectory of the sip directory given. They're not in this case. You'll need to patch pyqtdistutils.py line 276: Alternatively, you could setup a temporary symlink to fix the directory structure. |
|
This solved the problem. |
|
Just to note that the next version of Veusz will use sip-5+, so this problem should go away. |
Both configure and build phases fail with this option:
Setting the environment variable
SIP_DIRalso doesn't seem to have any effect.How to set the sip dir?
On FreeBSD the sip directory is
/usr/local/share/PyQt5/3.6/sip, and it can't find it by default.The text was updated successfully, but these errors were encountered: