aws / aws/aws-lambda-builders

Allow packaging shared object files in Python projects

Offen
#115 3 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area/workflow/python_pip maintainer/need-response type/feature
Vorherrschende Sprache
Python
Sterne
380
Forks
161
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
2

Beschreibung

**Description:**

I'm working on a Python project that indirectly uses a native library through `ctypes`, so I need to supply the library, `libspatialindex.so`, in the Lambda function's package. However, when I run `sam build`, the file does not get copied into the output. It looks like this is due to the [EXCLUDED_FILES](https://github.com/awslabs/aws-lambda-builders/blob/6696532b302c3974a6f0c1750ff572e768187cec/aws_lambda_builders/workflows/python_pip/workflow.py#L21) list for `PythonPipWorkflow`.

**Steps to reproduce the issue:**
1. Place a file ending in `.so` in the directory pointed to by `CodeUri`
2. Run `sam build`

**Observed result:**
The file should be copied into `.aws-sam/build/FunctionName/`

**Expected result:**
The file is missing

**Additional environment details (Ex: Windows, Mac, Amazon Linux etc)**
I am using SAM CLI version 0.16.0 on Debian Stretch

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit aws_lambda_builders/workflows/python_pip/workflow.py und untersuche die in der Issue referenzierte Liste EXCLUDED_FILES. Führe sam build mit einer .so-Datei unter CodeUri aus und überprüfe anschließend, dass die Datei in .aws-sam/build/FunctionName/ erscheint, wenn das Packaging-Verhalten korrigiert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, python
Bereich
build-system, cloud
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.