Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#54894 closed enhancement (fixed)

Add Python 3.6 to py-pyaudio

Reported by: radarhere (Andrew Murray) Owned by: Jakker (Jaap Akkerhuis)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: petrrr
Port: py-pyaudio

Description

If someone would be so kind as to add a py36 subport to py-pyaudio, that would be helpful.

Attachments (5)

Portfile-py-pyaudio.diff (2.2 KB) - added by Jakker (Jaap Akkerhuis) 6 years ago.
Patch to upgrade to version 0.2.11
Portfile-py-pyaudio.2.diff (2.5 KB) - added by mf2k (Frank Schima) 6 years ago.
Portfile-py-pyaudio.3.diff (2.6 KB) - added by mf2k (Frank Schima) 6 years ago.
Portfile-py-pyaudio.4.diff (1.4 KB) - added by Jakker (Jaap Akkerhuis) 6 years ago.
newest version of upgrade patch
Portfile-py-pyaudio.5.diff (2.1 KB) - added by Jakker (Jaap Akkerhuis) 6 years ago.
Unified diff version

Download all attachments as: .zip

Change History (22)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to jaap@…
Status: newassigned
Type: requestenhancement

In the future, please Cc the port maintainers (port info --maintainers py-pyaudio).

comment:2 Changed 7 years ago by radarhere (Andrew Murray)

Thanks.

comment:3 Changed 7 years ago by petrrr

Cc: petrrr added

comment:4 Changed 7 years ago by Jakker (Jaap Akkerhuis)

There is an update to pyaudio 0.2.11 coming soon. I'll add the Python 3.6 as well

comment:5 Changed 7 years ago by radarhere (Andrew Murray)

Thanks

Changed 6 years ago by Jakker (Jaap Akkerhuis)

Attachment: Portfile-py-pyaudio.diff added

Patch to upgrade to version 0.2.11

comment:6 Changed 6 years ago by Jakker (Jaap Akkerhuis)

Attache Patch to upgrade. Apologies for the delay.

comment:7 Changed 6 years ago by mf2k (Frank Schima)

Is there a reason to add py26? I'd rather not add older versions of python, only newer.

comment:8 in reply to:  7 Changed 6 years ago by Jakker (Jaap Akkerhuis)

Replying to mf2k:

Is there a reason to add py26? I'd rather not add older versions of python, only newer.

Oops, forgot to take it out, sorry. Feel free to do so.

comment:9 Changed 6 years ago by mf2k (Frank Schima)

Your patch has a number of issues.

  • You cannot depend on the stub port for py-sphinx and it must reside in the if {${name} ne ${subport}} { block.
  • You are introducing tabs. Please use spaces.
  • Use xinstall instead of mkdir and copy.

I am submitting my updated patch with fixes for all but the last. I apparently cannot figure out the correct syntax for xinstall even though I am following the guide.

Last edited 6 years ago by mf2k (Frank Schima) (previous) (diff)

Changed 6 years ago by mf2k (Frank Schima)

Attachment: Portfile-py-pyaudio.2.diff added

comment:10 Changed 6 years ago by mf2k (Frank Schima)

@Jakker: I just noticed that your patch removes the build dependency on py-setuptools. Was that intended?

Changed 6 years ago by mf2k (Frank Schima)

Attachment: Portfile-py-pyaudio.3.diff added

comment:11 Changed 6 years ago by mf2k (Frank Schima)

I have attached my latest version of the update but some issues remain:

  • Why change the master_sites? The original works fine and does not require a unique code that will change for the next version.
  • Why change the livecheck? It appears to work as is.
  • Not using py-setuptools has raised red flags when I was discussing this on IRC.
  • I still cannot get the xinstall commands to work correctly.

Changed 6 years ago by Jakker (Jaap Akkerhuis)

Attachment: Portfile-py-pyaudio.4.diff added

newest version of upgrade patch

comment:12 Changed 6 years ago by mf2k (Frank Schima)

Thanks. Please attach the Portfile patch as a unified diff.

comment:13 in reply to:  11 Changed 6 years ago by Jakker (Jaap Akkerhuis)

Replying to mf2k:

I have attached my latest version of the update but some issues remain:

  • Why change the master_sites? The original works fine and does not require a unique code that will change for the next version.

It didn't work for a while.

  • Why change the livecheck? It appears to work as is.

Don't remembering touching it.

  • Not using py-setuptools has raised red flags when I was discussing this on IRC.

It is back

  • I still cannot get the xinstall commands to work correctly.

I was following the "file mkdir" example from the MacPort Guide but since you asked, I'm now using xinstall.

Changed 6 years ago by Jakker (Jaap Akkerhuis)

Attachment: Portfile-py-pyaudio.5.diff added

Unified diff version

comment:14 in reply to:  12 Changed 6 years ago by Jakker (Jaap Akkerhuis)

Replying to mf2k:

Thanks. Please attach the Portfile patch as a unified diff.

Ach...

done

comment:15 Changed 6 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: assignedclosed

In 78ddabaec79b63e2732ae84051cfa44e01f302bf/macports-ports:

py-pyaudio: Update to version 0.2.11

  • Maintainer updates
  • Add py36 sub-port
  • Update dependencies
  • Fix destroot

Fixes: #54894

comment:16 Changed 6 years ago by mf2k (Frank Schima)

Thanks! I kept the livecheck as is because it is simpler and appears to work correctly. I also tweaked the build dependencies to add them using a single statement rather than 2 statements.

comment:17 Changed 6 years ago by radarhere (Andrew Murray)

Thanks to all involved

Note: See TracTickets for help on using tickets.