[MacPorts] #44472: py27-pyphant-imageprocessing @1.0b3 replace py27-pil dependency by py27-Pillow

MacPorts noreply at macports.org
Tue Jul 29 08:16:34 PDT 2014


#44472: py27-pyphant-imageprocessing @1.0b3 replace py27-pil dependency by
py27-Pillow
-------------------------------------------+---------------------
  Reporter:  alexander.held@…              |      Owner:  rowue@…
      Type:  enhancement                   |     Status:  new
  Priority:  Normal                        |  Milestone:
 Component:  ports                         |    Version:  2.3.1
Resolution:                                |   Keywords:
      Port:  py27-pyphant-imageprocessing  |
-------------------------------------------+---------------------

Comment (by alexander.held@…):

 Replying to [comment:4 ionic@…]:
 > Not sure... but it seems like that's possible.
 >
 > {{{
 > if {![catch [set Pillow_installed [lindex [registry_active py27-Pillow]
 0]}] } {
 >     # patch for Pillow
 > } # else { leave PIL or patch for PIL }
 > }}}
 >
 > Should be doing that. post-patch sounds appropriate as a phase for this.

 I experimented around a bit. My problem is that the patch phase is not run
 at all, when a pre-built version is fetched from the macports server. So
 conditional patching would also require to set the revision dynamically
 before the fetch phase but after it is clear, which dependency is actually
 used. I don't know, if this is possible.

 Alternatively, one could maybe patch the egg-info in a later phase and
 change the dependency in the `requires.txt` file instead of in the
 setup.py?

-- 
Ticket URL: <https://trac.macports.org/ticket/44472#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list