Make dwave-optimization a native namespace package
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- build-system
Research direction
Start by reading the linked Cython issues and pull request #305, then inspect the Meson-driven Cython build and the current dwave/init.py workaround. Done means the package is a native namespace package and its Cython builds succeed without retaining the placeholder file.
Written by the indexing model from the issue text.
Description
We'd like to change dwave-optimization to a native namespace package by removing dwave/__init__.py. However, doing so results in Cython builds failing. This is because Meson ultimately uses the cython ... command and that command cannot handle native namespace packages with relative imports, see https://github.com/cython/cython/issues/5335, https://github.com/cython/cython/issues/6287.
For now we leave a placeholder dwave/__init__.py in place, then discard it from the built wheel, see https://github.com/dwavesystems/dwave-optimization/pull/305.
I'll look into opening a issue/PR on Cython, as the linked issues are slightly different.
- Dominant language
- C++
- Stars
- 31
- Forks
- 36
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dwavesystems/dwave-optimization
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dwavesystems/dwave-optimization#505 · 1 comment ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in dwavesystems/dwave-optimization
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·