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

pybind as a dependency in own project; utilities-py; test-split #11147

Merged
merged 15 commits into from
Nov 27, 2022

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Nov 24, 2022

  • moved some things around
  • added utilities-py
  • started replacing LibCI cpp tests with python (string::split)

Ran into same issues as before -- updated pybind11 to 2.9.0.

@maloel maloel marked this pull request as ready for review November 24, 2022 21:40
Use PYTHON_EXECUTABLE instead (using PYTHON_PATH).
There were also referenced to Python 2.7...
@maloel maloel requested a review from Nir-Az November 26, 2022 12:21

# Now that it's available, we can refer to it with an actual ExternalProject_add (but notice we're not
# downloading anything)
ExternalProject_Add( pybind11
Copy link
Collaborator

Choose a reason for hiding this comment

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

What will happen here?
I think it will build it again during the build process
Why do we need to build it again?

why not just pybind11_add_module as before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

as discussed


# Put all the collaterals together, so we can find when trying to run examples/tests
# Note: this puts the outputs under <binary>/<build-type>
# Note note: this ruins our CI procedures... otherwise it mirrors Windows, simplifies
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a prefix 'We cannot uncomment because this.."

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A prefix?

Copy link
Collaborator

Choose a reason for hiding this comment

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

  # Note note: this ruins our CI procedures... otherwise it mirrors Windows, simplifies

to

  # Note note: We cannot uncomment because it ruins our CI procedures... otherwise it mirrors Windows, simplifies

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed

python/cpython#84006

>>> import sysconfig
>>> sysconfig.get_config_var('EXT_SUFFIX')
'.pyd'
>>> from distutils import sysconfig
>>> sysconfig.get_config_var('EXT_SUFFIX')
'.cp38-win_amd64.pyd'

v2.9.2 takes from the previous, v2.9.0 from the latter.
So with v2.9.2 we get ABI-less extension which we need.

v2.10.1 seems to have fixed this, but we cannot move to it (it
deprecates VS2015)...
Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

LGTM

@maloel maloel merged commit 55b1c10 into IntelRealSense:development Nov 27, 2022
@maloel maloel deleted the utility branch November 27, 2022 14:24
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.

2 participants