Skip to content

Copy artifacts into the container before compiling #751

Description

@ddieruf

Using the command langstream python load-pip-requirements -app ./application I have local packages (.whl) in the 'python' folder. They need to be in a known location before doing any "pip" work on them. Instead of working directly off the container mounts, copy all needed assets to a known place and then do the work.

Example use case
I'm developing a custom python package to be used with LangStream. In the python folder I have:

  • myCustomProcessor.py
  • requirements.txt
  • smart_logs-0.0.1-py3-none-any.whl

The contents of requirements.txt is:
./smart_logs-0.0.1-py3-none-any.whl

I am seeing the follow error during the pip install:
OSError: [Errno 18] Invalid cross-device link: '/tmp/pip-target-atzg9f4_/lib/python/smart_logs-0.0.1.dist-info' -> '/code/application/python/lib/smart_logs-0.0.1.dist-info'

It appears to be related to this SO thread.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions