Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Python 3 porting guide #184

Open
quozl opened this issue Aug 21, 2019 · 8 comments
Open

Improve Python 3 porting guide #184

quozl opened this issue Aug 21, 2019 · 8 comments

Comments

@quozl
Copy link
Contributor

quozl commented Aug 21, 2019

After running 2to3, there is no other guidance. There may be common patterns of change that are required. These can be added to the guide.

@Aniket21mathur, as an opportunity.

@quozl
Copy link
Contributor Author

quozl commented Dec 5, 2019

It depends on experience in the task. Have you ported any Sugar activities to Python 3 yet? Do that first.

@Ritinikhil
Copy link

I will work on this issue .

@quozl
Copy link
Contributor Author

quozl commented Feb 13, 2024

Which activities will you port?

@Ritinikhil
Copy link

Ritinikhil commented Feb 13, 2024 via email

@chimosky
Copy link
Member

@Ritinikhil a great place to start would be setting up a dev environment and do some Python 3 porting following the existing documentation before you can improve it.

@quozl
Copy link
Contributor Author

quozl commented Feb 13, 2024

G'day Nikil, thanks for your mail.

I asked which activities you would be porting because doing that porting is a pre-requisite for rewriting the guide to porting, and as far as I could tell you hadn't done any porting yet. You can identify activities for porting using the guide to porting, which says as one of the final steps;

  • Change exec value in activity.info from sugar-activity to sugar-activity3

So all you have to do is find repositories or activities that contain sugar-activity as the exec value in their file activity.info, then iterate through that list to select which activity you'd like to port. A common method is to count the lines of source code and pick the smallest code base.

Keep in mind that not all activities are on GitHub for Sugar Labs. Some are in personal GItHub repositories. Some are ZIP files (*.xo) on download.sugarlabs.org, some are only on activities.sugarlabs.org, and if I recall correctly some are on the Wiki. Sugar Labs has a long history. Hope that helps!

@Ritinikhil
Copy link

Ritinikhil commented Feb 18, 2024 via email

@quozl
Copy link
Contributor Author

quozl commented Feb 18, 2024

Thanks. I don't think you have enough experience to start this task. I suggest you find another task.

However, given the error you mention, make sure you have a GObject typelib for Gtk 3.0, which on Ubuntu would usually be the package named gir1.2-gtk-3.0

What version of this package is installed on your system?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants