You want to append "subport=$name" to the command:
 "sudo port build subport=py27-pypdf2"

On Jul 31, 2013, at 3:42 PM, Freek Dijkstra wrote:

> I've just created a Portfile for a python module, and like to test this.
> My normal action is just cd to the folder where the Portfile is located
> and type "port build".
> 
> However, I'm getting an error:
>> --->  Computing dependencies for py-pypdf2
>> Error: Dependency 'py27-pypdf2' not found.
> 
> I realised I don't want to build py-pypdf2 but rather py27-pypdf2. How
> do I specify the Python version to use? "port build py27-pypdf2" seems
> to check the Port database, and ignores the local folder.

_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to