Skip to content
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

add sip5 binding install directory check #95

Merged
merged 1 commit into from
Mar 1, 2021
Merged

add sip5 binding install directory check #95

merged 1 commit into from
Mar 1, 2021

Conversation

acxz
Copy link
Contributor

@acxz acxz commented Oct 18, 2020

resolves #80
affected downstream issues:
ros-noetic-arch/ros-noetic-python-qt-binding#2
ros-melodic-arch/ros-melodic-rviz#9

Basically adds the sip5 default binding install directory to the check, since this will be the new place of bindings and some distros have already switched causing errors on those systems without adding this check.
Added comments in code for clarity.

@acxz
Copy link
Contributor Author

acxz commented Oct 27, 2020

@dirk-thomas can you take a quick look at this patch?

@acxz
Copy link
Contributor Author

acxz commented Nov 3, 2020

@dirk-thomas @claireyywang @sloretz it has been more than 2 week since this is open. Can you provide closure to this PR?
It'll be quick ;)

@dirk-thomas
Copy link
Contributor

I am not maintaining this repository anymore. That is why I assigned the new maintainers to review this PR.

@acxz
Copy link
Contributor Author

acxz commented Nov 14, 2020

@claireyywang @sloretz it has been around a month since this is open. Can you provide closure to this PR?

@acxz
Copy link
Contributor Author

acxz commented Nov 29, 2020

@claireyywang @sloretz friendly ping

1 similar comment
@acxz
Copy link
Contributor Author

acxz commented Dec 7, 2020

@claireyywang @sloretz friendly ping

@claireyywang
Copy link

@acxz Sorry about the delay, I'll take a look soon!

@acxz
Copy link
Contributor Author

acxz commented Dec 16, 2020

@claireyywang @sloretz it has been around 2 months since this PR has been opened, sorry to keep bugging you guys about it, but it really is a quick fix. It would be much appreciated if you guys can provide closure to this PR.
Thank you.

@acxz
Copy link
Contributor Author

acxz commented Dec 23, 2020

@claireyywang @sloretz would be much appreciated if you can take a glance at this.

@acxz
Copy link
Contributor Author

acxz commented Jan 7, 2021

@claireyywang @sloretz another ping.

@acxz
Copy link
Contributor Author

acxz commented Feb 20, 2021

@claireyywang @sloretz it has been a couple months now if you guys could take just a quick look at this, it would be much much appreciated!

@acxz
Copy link
Contributor Author

acxz commented Feb 25, 2021

@claireyywang @sloretz another ping.

:(

Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your patience and persistence. It must feel frustrating to not have seen progress so far.

@@ -61,6 +61,12 @@ def get_sip_dir_flags(config):
# sipconfig.Configuration does not have a pyqt_sip_dir or pyqt_sip_flags AttributeError
sip_flags = QtCore.PYQT_CONFIGURATION['sip_flags']

# sip5 installs here by default
default_sip_dir = os.path.join(sipconfig._pkg_config['default_mod_dir'], 'PyQt5', 'bindings')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I launched an archlinux container and confirmed this is the right location.

>>> sipconfig._pkg_config['default_mod_dir']
'/usr/lib/python3.9/site-packages'
>>> sipconfig._pkg_config['default_sip_dir']
'/usr/share/sip'

It does seem strange since default_sip_dir seems like it should be the right spot.

default_sip_dir

The name of the base directory where the .sip files for SIP generated modules should be installed by default. A sub-directory with the same name as the module should be created and its .sip files should be installed in the sub-directory. The .sip files only need to be installed if you might want to build other bindings based on them.

Is it possible this is an archlinux specific packaging bug? Maybe introduced here? If so, I would be happy to merge this addition so long as the comment says it's a workaround for packaging on archlinux.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for looking into this! Yeah I'll update the comment to be more reflective of the situation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed the comment and commit to mention the change is due to archlinux specifics.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is nothing archlinux specific here. You are looking at the sip 4 install dir, this change is for sip >= 5 (latest version is 6.x)

Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@sloretz sloretz merged commit d97ecb2 into ros-visualization:melodic-devel Mar 1, 2021
@acxz
Copy link
Contributor Author

acxz commented Mar 1, 2021

thank you for considering my PR!

@acxz acxz deleted the sip5-binding-dir branch March 1, 2021 19:32
@mikepurvis
Copy link
Member

@sloretz Would it be possible to get a ROS 1 release which includes this change? We can use it from the hash in the short term, but we need it for the environment we're building in.

@sloretz
Copy link
Contributor

sloretz commented Jul 15, 2021

@mikepurvis released in ros/rosdistro#30232 and ros/rosdistro#30233

@mikepurvis
Copy link
Member

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Location of sip files may be different based on distro/python version
6 participants