Skip to content

Support pip #1983

Closed
Closed
@BenLewis-Seequent

Description

@BenLewis-Seequent

To support pip the following are required:

  • __class__ assignment(Support assigning to __class__ #1981)
  • plistlib which requires xml.parsers.expat
  • Fix shutil.get_terminal_size
  • itertools.groupby
  • Fix str.__add__ raising TypeError instead of returning NotImplemented
  • Fix "{x.attr}".format(...)

If the above issues are worked/hacked around, then the pip help text is successfully displayed 🎉:

ben@BenLinux:~/Hobby/RustPython$ RUSTPYTHONPATH=Lib:local_packages/ cargo run --release local_packages/pip 
    Finished release [optimized] target(s) in 0.12s
     Running `target/release/rustpython local_packages/pip`

Usage:   
  pip <command> [options]

Commands:
     install Install packages.
    download Download packages.
   uninstall Uninstall packages.
...

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