Allow packaging shared object files in Python projects
- Lingua principale
- Python
- Stelle
- 380
- Fork
- 161
- Merge medio
- 1g 1h
- PR unite (30g)
- 2
Descrizione
**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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da aws_lambda_builders/workflows/python_pip/workflow.py e ispeziona l’elenco EXCLUDED_FILES a cui si fa riferimento nell’issue. Esegui sam build con un file .so sotto CodeUri, quindi verifica che il file compaia in .aws-sam/build/FunctionName/ quando il comportamento del packaging sarà corretto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- build-system, cloud
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100