Skip to content

Specify output target for requirements #340

@jamesryanbell

Description

@jamesryanbell

Is it possible to specify which folder the injected requirements end up in? For example:

├── function1
│      ├── requirements.txt
│      ├── libraries <-- requirements would be injected here
│      └── index.py

Thanks,
James

Activity

davaxi

davaxi commented on Nov 4, 2021

@davaxi

For Serverless scaleway it's need to overide destination of requirement to other other folder package. Currently

and

pipCmd.push('-t', '/var/task/', '-r', '/var/task/requirements.txt');

force destination and unauthorize usage of

pipCmdExtraArgs:
 - --target

Simply add options pipTarget with default '' and update two lines with concat.

Ping : @scaleway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dschep@davaxi@jamesryanbell

        Issue actions

          Specify output target for requirements · Issue #340 · serverless/serverless-python-requirements