You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add the option for custom default PyPI indexes when creating cross environments #98
A cross-platform virtual environment can use PyPI's index; but while iOS/Android wheels aren't common, using a third-party wheel store (like BeeWare's or Chaquopy's) will be a common requirement.
At present, it is necessary to manually specify --extra-index-url to every invocation of pip in a cross-platform environment; however, by adding a pip.confto the root of the a venv, it's possible to automatically configure pip flags when the environment is used.
Describe the solution you'd like
When a xvenv creates a virtual environment, it should be possible to pass in --index-url, plus a list of --extra-index-url and --find-links options that are added to the pip configuration for the underlying venv.
It should also be possible to pass in --only-binary or --prefer-binary options, and have those preserved in the pip.conf
When xbuild or xpython is invoked, the same options should be made available, and applied to the cross-platform environment that is created.
Describe alternatives you've considered
Continue to require manual options to pip.
Additional context
These options should be handled as common options across all commands. They should be inherited into any cross-environment that is created from inside an active environment unless the environment is explicitly overridden (e.g., if you're in an iOS environment and create an iOS environment, any index options should be carried over; but if you create an Android environment, the iOS options would not be carried over).
Activity