Git Product home page Git Product logo

Comments (5)

marcmolla avatar marcmolla commented on June 15, 2024

I get toga 0.2.0 and, as this version does not provides [ios], it automatically install toga-cocoa.

I have to use 'toga[ios]==0.2.0.dev1' instead.

from briefcase.

freakboy3742 avatar freakboy3742 commented on June 15, 2024

AFAIK, this should have been addressed by the 0.2.0 release. @phildini's patch predates that release; I can't reproduce what you're describing with the current releases on PyPI:

(testbed3)hammer:tutorial2 rkm$ pip install toga[iOS]
Collecting toga[iOS]
  Using cached toga-0.2.0-py2.py3-none-any.whl
  toga 0.2.0 does not provide the extra 'iOS'
Collecting toga-cocoa; sys_platform == "darwin" (from toga[iOS])
  Using cached toga_cocoa-0.2.0-py2.py3-none-any.whl
Collecting rubicon-objc (from toga-cocoa; sys_platform == "darwin"->toga[iOS])
  Using cached rubicon_objc-0.2.2-py2.py3-none-any.whl
Collecting toga-core (from toga-cocoa; sys_platform == "darwin"->toga[iOS])
  Using cached toga_core-0.2.0-py2.py3-none-any.whl
Collecting colosseum (from toga-core->toga-cocoa; sys_platform == "darwin"->toga[iOS])
  Using cached colosseum-0.1.2-py2.py3-none-any.whl
Installing collected packages: rubicon-objc, colosseum, toga-core, toga-cocoa, toga
Successfully installed colosseum-0.1.2 rubicon-objc-0.2.2 toga-0.2.0 toga-cocoa-0.2.0 toga-core-0.2.0

Can you provide a reproduction case?

from briefcase.

freakboy3742 avatar freakboy3742 commented on June 15, 2024

Ah - sorry - now I read all of your report, I see the problem :-)

This is effectively a documentation problem for a subtle change in how Toga is installed. toga[iOS] is no longer a meaningful target; you either install:

  • toga-ios if you want Toga for iOS and it's dependencies, or
  • toga if you want Toga for your current platform.

If you can point me at the documentation that led you down the wrong path, that is what needs to be corrected (or if you want, a PR for a fix to those docs would be fantastic!)

This change had to be made because of the difference between the development platform and the deployment platform when dealing with mobile. The setup.py configuration for toga attempts to auto detect the "current" platform - which is wherever setup.py is running, not the platform that setup.py is running for. So, as a result, you end up accidentally installing toga-cocoa whenever you are writing for iOS.

Ideally, I'd like to re-enable the toga[iOS] option, or be able to specify a "deployment platform" in setup.py that setup.py will honour (so that python setup.py ios will install toga-ios just by putting toga in install_requires). However, it isn't clear to me that this is possible without modifications to setuptools/distutils.

from briefcase.

marcmolla avatar marcmolla commented on June 15, 2024

The README.rst is the document to update. I included a proposal in a PR that I sent with a couple of basic tutorials:
#16

from briefcase.

freakboy3742 avatar freakboy3742 commented on June 15, 2024

Closing due to merge of #16.

from briefcase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.