Skip to content

Yet another utility to build distributions #2634

Closed
@filnet

Description

@filnet

It is a ntldd based python utility that will scan a list of libraries or executables and copy all their dependencies to a destination dir.
Inspiration came from https://github.com/msys2/msys2/wiki/Distributing.

$ ./copy_dependencies.py -h
usage: copy_dependencies.py [-h] [-n] [-v] [-d DEST] -f FILE
                            [FILE ...] [-e FILE [FILE ...]]

Find and copy dependencies to a destination directory.

optional arguments:
  -h, --help            show this help message and exit
  -n, --no-copy         don't copy dependencies to destination dir
  -v, --verbose         enable verbose mode
  -d DEST, --dest DEST  destination directory (defaults to current directory)
  -f FILE [FILE ...], --files FILE [FILE ...]
                        a file
  -e FILE [FILE ...], --excludes FILE [FILE ...]
                        a file

Example usage:

./copy_dependencies.py -f *.dll *.exe

will copy all dependencies of libraries and execs found in the current directory to the current directory.

Source is here.

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