python distutils without setup.py?

Matthew Seaman matthew at FreeBSD.org
Thu Dec 5 07:36:49 UTC 2019


I'm looking at updating sysutils/py-ansible-lint
(https://github.com/ansible/ansible-lint) and it's got me scratching my
head.  Seems there's now no setup.py included in the source code, and
that makes the ports sad:

```
lucid-nonsense:~...ports/sysutils/py-ansible-lint:% make
===>  License MIT accepted by the user
===>   py37-ansible-lint-4.2.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by py37-ansible-lint-4.2.0 for building
===>  Extracting for py37-ansible-lint-4.2.0
=> SHA256 Checksum OK for ansible-lint-4.2.0.tar.gz.
===>  Patching for py37-ansible-lint-4.2.0
===>   py37-ansible-lint-4.2.0 depends on package:
py37-setuptools_scm_git_archive>0 - found
===>   py37-ansible-lint-4.2.0 depends on package: py37-setuptools>0 - found
===>   py37-ansible-lint-4.2.0 depends on file: /usr/local/bin/python3.7
- found
===>  Configuring for py37-ansible-lint-4.2.0
Traceback (most recent call last):
  File "<string>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'setup.py'
*** Error code 1

Stop.
make: stopped in /home/matthew/work/ports/sysutils/py-ansible-lint
```

There's a comment in the ChangeLog:

   * Fully depend on Pip having PEP 517 implementation #607

and the associated merge:

   https://github.com/ansible/ansible-lint/pull/607/files

has the removal of setup.py.  The docs now say that to install from
source, you should run:

   pip install git+https://github.com/ansible/ansible-lint.git

Do we have support in the ports for python modules setup in this way?
Is there a similar example I can copy from?

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20191205/49551133/attachment.sig>


More information about the freebsd-ports mailing list