<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi there,<div class=""><br class=""></div><div class="">would anyone mind helping me? I am not very experienced with Portfile development and I know little about Python, which makes this all very cumbersome (but fun). </div><div class=""><br class=""></div><div class="">I am trying to setup a Portfile for AWS SAM CLI: <a href="https://github.com/awslabs/aws-sam-cli" class="">https://github.com/awslabs/aws-sam-cli</a> </div><div class=""><br class=""></div><div class="">My problem is dealing with Python dependencies. I know Python people have pip, conda and virtualenv - probably more. In MacPorts I can work with Port dependencies: depends_build-append, depends_lib-append and so on. I just don’t know how to put all of them together.</div><div class=""><br class=""></div><div class="">There is a Port for the AWS CLI (py-awscli). I went ahead and did a lot of copy & paste, trying to figure things out. </div><div class=""><br class=""></div><div class="">I created 2 ports: py-aws-sam-cli and was-sam-cli_select. So far I managed to download aws-sam-cli from <a href="https://pypi.org" class="">https://pypi.org</a>, but I end up with a runtime exception.</div><div class=""><br class=""></div><div class="">$ sam<br class="">Traceback (most recent call last):<br class=""> File "/opt/local/bin/sam", line 6, in <module><br class=""> from pkg_resources import load_entry_point<br class=""> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3251, in <module><br class=""> @_call_aside<br class=""> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside<br class=""> f(*args, **kwargs)<br class=""> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set<br class=""> working_set = WorkingSet._build_master()<br class=""> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 583, in _build_master<br class=""> ws.require(__requires__)<br class=""> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 900, in require<br class=""> needed = self.resolve(parse_requirements(requirements))<br class=""> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve<br class=""> raise DistributionNotFound(req, requirers)<br class="">pkg_resources.DistributionNotFound: The 'tomlkit==0.5.8' distribution was not found and is required by aws-sam-cli<br class=""><br class=""></div><div class="">How to deal with missing dependencies in Python? Do I need py-tomlkit and create a MacPorts dependency on that port? </div><div class=""><br class=""></div><div class="">My current work is here <a href="https://github.com/raupachz/macports-ports/tree/aws-sam-cli" class="">https://github.com/raupachz/macports-ports/tree/aws-sam-cli</a></div><div class=""><br class=""></div><div class="">And here is just the Portfile for py-aws-sam-cli: <a href="https://github.com/raupachz/macports-ports/blob/aws-sam-cli/python/py-aws-sam-cli/Portfile" class="">https://github.com/raupachz/macports-ports/blob/aws-sam-cli/python/py-aws-sam-cli/Portfile</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thank you all for the time and effort that goes into MacPorts!</div><div class="">/Björn</div></body></html>