Opened 12 years ago

Closed 11 years ago

#37570 closed submission (fixed)

Submission: py*-pdfrw

Reported by: macfreek (Freek Dijkstra) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: py-pdfrw

Description

Attached is a Portfile for the python package "pdfrw", version 0.1.

I'm not the developer of this package; I just happen to install it and find it easy enough to create a Portfile.

Attachments (2)

Portfile (623 bytes) - added by macfreek (Freek Dijkstra) 12 years ago.
Portfile-unified-attempt (666 bytes) - added by macfreek (Freek Dijkstra) 12 years ago.
Attempt to use the unified Python portgroup

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by macfreek (Freek Dijkstra)

Attachment: Portfile added

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

This needs to be modified to use the unified python 1.0 portgroup. See the py-pil port for an example.

comment:2 Changed 12 years ago by macfreek (Freek Dijkstra)

Is there some documentation how to create a unified Python portgroup? The guide does not (yet) mention it, and searching the mailing list didn't turn up something useful. I made an attempt, but when I try to use it, I get an error:

[root@lampje] Code/macports/py-pdfrw# port -d install
DEBUG: Copying /Users/freek/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Changing to port directory: /Users/freek/Code/macports/py-pdfrw
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
[...]
DEBUG: Searching for dependency: py27-pdfrw
DEBUG: Didn't find receipt, going to depspec regex for: py27-pdfrw
Error: Dependency 'py27-pdfrw' not found.

I'll upload the my attempt and ask on the mailing list.

Changed 12 years ago by macfreek (Freek Dijkstra)

Attachment: Portfile-unified-attempt added

Attempt to use the unified Python portgroup

comment:3 Changed 11 years ago by anatol (Anatol Pomozov)

Is there any chance to see this package accepted?

I am trying to use rst2pdf on my MBP and following command

curl http://docutils.sourceforge.net/docs/user/rst/quickstart.txt | rst2pdf > quickstart.pdf

fails

Traceback (most recent call last):
  File "/opt/local/bin/rst2pdf", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
    working_set.require(__requires__)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pdfrw

It sounds like 'rst2pdf' should depend on this py27-pdfrw port.

comment:4 Changed 11 years ago by larryv (Lawrence Velázquez)

Keywords: python removed
Owner: changed from macports-tickets@… to larryv@…
Port: py-pdfrw added; py27-pdfrw removed
Status: newassigned
Version: 2.1.2

comment:5 Changed 11 years ago by larryv (Lawrence Velázquez)

Keywords: haspatch added
Resolution: fixed
Status: assignedclosed
Summary: NEW: py27-pdfrwSubmission: py*-pdfrw

Committed in r108379, with minor changes. Thanks.

Note: See TracTickets for help on using tickets.