Document meson-pythons requirements for the "install_dir" option of e.g. configure_file
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- documentation
Rechercherichtung
Beginne damit, die Dokumentation zu Python-Installationspfaden, get_install_dir und der install_dir-Option von configure_file zu finden. Dokumentiere, dass meson-python verlangt, dass das Unterverzeichnis über get_install_dir(subdir: ...) übergeben wird, statt an dessen Ergebnis angehängt zu werden, und nimm das gezeigte Beispiel sowie das Fehlerverhalten beim Wheel-Mapping auf.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
This issue is somewhat similar to https://github.com/mesonbuild/meson-python/issues/233, but different.
I had the following problem: I tried to configure an __init__.py file and install it into a subdirectory of the python install_dir using the pymod.get_install_dir function:
pymod = import('python').find_installation(pure: false)
configure_file(input : '__init__.py',
output : '__init__.py',
configuration : conf_data,
install_dir : pymod.get_install_dir() + 'some_subdirectory/',
)
This works with meson, but from meson-python I get an error: "Could not map installation path to an equivalent wheel directory: ...". The problem seems to be the "+ 'some_subdirectory/'" because the solution is to put the subdirectory name INTO the get_install_dir command using the subdir keyword_argument:
pymod = import('python').find_installation(pure: false)
configure_file(input : '__init__.py',
output : '__init__.py',
configuration : conf_data,
install_dir : pymod.get_install_dir(subdir: 'some_subdirectory'),
)
I think this behavior should be documented.
If you tell me where to add this, I can create a pull request.
- Vorherrschende Sprache
- Python
- Sterne
- 181
- Forks
- 96
- Ø Merge
- 21 Std. 24 Min.
- Gemergte PRs (30 T.)
- 8
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus mesonbuild/meson-python
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
mesonbuild/meson-python#541 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
mesonbuild/meson-python#473 · 6 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation enhancement tests
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 45/100
mesonbuild/meson-python#903 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
mesonbuild/meson-python#871 · 7 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
pip install overrides existing build configurationEvtl. vergeben @Alvaro-Kothe hat das vor 134 Tagen übernommen. Offenquestion
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
mesonbuild/meson-python#851 · 6 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in mesonbuild/meson-python
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
pydot/pydot#601 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
letsencrypt/cp-cps#361 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
CI: startup_failure because callers grant fewer permissions than ledger-app-workflows@v1 declaresEvtl. vergeben @maykonmichel hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
LedgerHQ/app-boilerplate-rust#227 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
linuxmint/mintupdate#1107 ·