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

python + sysconfig gives ANOTHER path comparing to distutils #895

Closed
socketpair opened this issue Jun 10, 2023 · 3 comments · Fixed by #896
Closed

python + sysconfig gives ANOTHER path comparing to distutils #895

socketpair opened this issue Jun 10, 2023 · 3 comments · Fixed by #896

Comments

@socketpair
Copy link
Contributor

socketpair commented Jun 10, 2023

$ python3 
Python 3.11.3 (main, May 24 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils.sysconfig
>>> print(distutils.sysconfig.get_python_lib(1,0))
/usr/lib64/python3.11/site-packages
>>> import sysconfig
>>> print(sysconfig.get_path("platlib"))
/usr/local/lib64/python3.11/site-packages

So, the changes around #769 make AGAIN

error: pythonmod: cannot initialize core module: unboundmodule.py

Is it possible not to hardcode (at ./configure stage and then in Makefile) the path at all ?

https://bugzilla.redhat.com/show_bug.cgi?id=2213996
mesonbuild/meson#10459 (comment)

@socketpair
Copy link
Contributor Author

@socketpair
Copy link
Contributor Author

rpm-software-management/dnf#1782

This function can be used to determine where files should be installed, but it doesn't necessarily tell you where they have been installed.

socketpair added a commit to socketpair/unbound that referenced this issue Jun 11, 2023
socketpair added a commit to socketpair/unbound that referenced this issue Jun 11, 2023
@socketpair
Copy link
Contributor Author

And for me, I would completely drop Python 2.x support. In 2023, it is definitely dead. But that's another suggestion.

wcawijngaards added a commit that referenced this issue Jun 12, 2023
Fix: #895: pythonmodule: add all site-packages directories to sys.path
wcawijngaards added a commit that referenced this issue Jun 12, 2023
wcawijngaards added a commit that referenced this issue Jun 12, 2023
- Fix #895: python + sysconfig gives ANOTHER path comparing to
  distutils.
jedisct1 added a commit to jedisct1/unbound that referenced this issue Jul 15, 2023
* nlnet/master: (43 commits)
  - More clear description of the different auth-zone behaviors on the   man page.
  - Merge NLnetLabs#880 from chipitsine: services/authzone.c: remove redundant   check.
  - Merge NLnetLabs#664 from tilan7763: Add prefetch support for subnet cache   entries. - For NLnetLabs#664: Easier code flow for subnetcache prefetching. - For NLnetLabs#664: Add testcase. - For NLnetLabs#664: Rename subnet_prefetch tests to subnet_global_prefetch to   differentiate from the new subnet prefetch support.
  - For NLnetLabs#664: easier code flow for subnetcache prefetching. - For NLnetLabs#664: add testcase.
  - Skip the 00-lint test. splint is not maintained; it either does not   work or produces false positives. Static analysis is handled in the   clang test.
  - For NLnetLabs#802: Cleanup comments and add RCODE check for CD bit test case.
  - Fix dereference of NULL variable warning in mesh_do_callback.
  - Code cleanup for sldns_str2wire_svcparam_key_lookup.
  - Fix NLnetLabs#906: warning: ‘Py_SetProgramName’ is deprecated.
  - For NLnetLabs#739: minor cleanup for testcases.
  - More fixes for reference counting for python module and clean up   failure code.
  - Fix python modules with multiple scripts, by incrementing reference   counts.
  - Remove warning about unknown cast-function-type warning pragma.
  Add changelog and contrib/README mention for NLnetLabs#903 - Merge NLnetLabs#903: contrib: add yocto compatible init script.
  contrib: add yocto compatible init script
  Changelog for NLnetLabs#887 and NLnetLabs#516
  - Properly handle all return values of worker_check_request during   early EDE code. - Do not check the incoming request more than once.
  - Fix for uncertain unit test for doh buffer size events.
  Changelog note for NLnetLabs#895 - Fix NLnetLabs#895: python + sysconfig gives ANOTHER path comparing to   distutils.
  - Merge NLnetLabs#896: Fix: NLnetLabs#895: pythonmodule: add all site-packages   directories to sys.path.
  ...
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 a pull request may close this issue.

1 participant