From owner-freebsd-ports@freebsd.org Mon Aug 13 02:04:11 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBA361061ABE for ; Mon, 13 Aug 2018 02:04:11 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 532DB843EA for ; Mon, 13 Aug 2018 02:04:11 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 17F571061AB6; Mon, 13 Aug 2018 02:04:11 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA4C51061AB5 for ; Mon, 13 Aug 2018 02:04:10 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A260843E6 for ; Mon, 13 Aug 2018 02:04:10 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pg1-x52b.google.com with SMTP id n7-v6so6816776pgq.4 for ; Sun, 12 Aug 2018 19:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:reply-to:subject:to:references:from:openpgp:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FAKE4Kn2XSkoTOwwQTdDWjVo8u7vVgGdr4FTCMYid6g=; b=GgTHvzTM2LHTEgvSg1pWB8D/KTF20ygEOSVVHx7uhzje8S8BGmZBaV7lEZdAmJrhxz qMh+mKhYRuk4PyyRkqY947ruNwTzTHz8uCSgS6nVudGdJK+lHymq5dWfnfLOE+xklzSn SGWUeYR/xQIOKav0AIajokBLWoVnu8YQoJBd5MfaSAay2+X9xqpt3C+5g+ssRtU8pM5e ROcJbcZOUyT1yeqecANR1H5bkv+sP3yDdUTrnWLk45Xve/uzfKqx881vOYaUwXRItxXv pV0UHPEo5qCiIyBzCwAtM2Ff4IhLlafyGDSNbFAvlv21zT+NKhc/GHvfXeLKBQZGtkt3 PApA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:subject:to:references:from :openpgp:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=FAKE4Kn2XSkoTOwwQTdDWjVo8u7vVgGdr4FTCMYid6g=; b=DJoVfQUk4XmQrdCXwAg5xu2KR6WGZB+P5N4k77prr+wkIYPTA0INruEuUv34Z/t2Fv 5EhMENvNHcPPG5d1OAL6CBL4Lm/d5ThinJsELbXf0rJNoXqSOX9KeSGPetNNdIliFM4v YIK6dx9ZwxVQVGe3+dxfUo9JnFfT69HQjGXtvImzIDTNwSW0svHlhWWC65Oe+KXh5LPb BuEaHfQZMsYQiIdoikYLmk+TeG5QIvoYGfnL/6hlqZQ5XEGEzZnw5cmfg1sU/CP8sV51 /aZnrfUehz+1QAJ3m5Ghxem7yggjQc0jXl/aJF20ZGhGFJfAzniK6SerrGaV+fBnoLJS UaYA== X-Gm-Message-State: AOUpUlH+12WAZT/XVHETilRKw2l+VyJzCOYto3n5BrWf8/5SMoysPa5E l/rlNcHCmQEyMYZHqutfdrHl2lYv X-Google-Smtp-Source: AA+uWPzJDiQex0itAdu0U9lHF7t1CbNEzXxjqv0YI2fgmyN85zeSLzd2ACIIPmmUhv4HpoDTOSGDZA== X-Received: by 2002:a63:e718:: with SMTP id b24-v6mr15351635pgi.224.1534125849356; Sun, 12 Aug 2018 19:04:09 -0700 (PDT) Received: from [192.168.1.107] ([103.107.240.136]) by smtp.gmail.com with ESMTPSA id t30-v6sm24586249pgm.81.2018.08.12.19.04.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Aug 2018 19:04:08 -0700 (PDT) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: Porting python applications and meeting dependency requirements To: Carsten Larsen , "ports@FreeBSD.org" References: <107c43ad-a042-61bf-e8fe-565f2f6e8d2d@innolan.net> From: Kubilay Kocak Openpgp: preference=signencrypt Message-ID: Date: Mon, 13 Aug 2018 12:04:04 +1000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <107c43ad-a042-61bf-e8fe-565f2f6e8d2d@innolan.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 02:04:12 -0000 On 13/08/2018 7:52 am, Carsten Larsen wrote: > Hi @ports > > I am not so familiar with porting python applications. There seems to be > some caveats, dependencies being one of them. Question is: Would it be > difficult to make a port of The Onion Box? Source is on Github: > https://github.com/ralphwetzel/theonionbox It's also registered in PyPI: https://pypi.org/project/theonionbox/ with its source distribution ('sdist') uploaded there. Porting python packages is relatively straight forward, particular those that use standard Python ecosystem mechanisms (distutils/setuptools, etc). This looks fairly straightforward at a quick glance to port. Dependencies are listed in setup.py:install_requires [1] which correspond to RUN_DEPENDS If some of the dependencies aren't in ports, they'll need porting first. Some Python specific porting guidelines to help: https://wiki.freebsd.org/Python/PortsPolicy #freebsd-ports or #freebsd-python @ freenode IRC if you have any questions or need help. [1] https://github.com/ralphwetzel/theonionbox/blob/master/setup.py#L375 > Regard > Carsten ./koobs