Bug 216941 - devel/py-logilab-common & devel/py-pytest install to the same files
Summary: devel/py-logilab-common & devel/py-pytest install to the same files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-09 15:12 UTC by Dan Langille
Modified: 2017-02-10 16:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Langille freebsd_committer freebsd_triage 2017-02-09 15:12:32 UTC
These two ports conflict. They install the same file.  I suggest they both be renamed.  I will post this ticket, then work on patches for review/approval.  If anyone else wishes to proceed on this issue before I do that, please proceed.

Here are command run after a poudriere testport on a recent ports tree:

testport of devel/py-pytest

# pkg info -l py27-pytest-3.0.6 | grep /usr/local/bin/pytest
	/usr/local/bin/pytest
	/usr/local/bin/pytest-2.7
# cat /usr/local/bin/pytest
#!/usr/local/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'pytest==3.0.6','console_scripts','pytest'
__requires__ = 'pytest==3.0.6'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
        load_entry_point('pytest==3.0.6', 'console_scripts', 'pytest')()
    )



testport of devel/py-logilab-common

# pkg info -l py27-logilab-common-1.2.2 | grep /usr/local/bin/pytest
	/usr/local/bin/pytest
	/usr/local/bin/pytest-2.7

# cat /usr/local/bin/pytest
#!/usr/local/bin/python2.7

import warnings
warnings.simplefilter('default', DeprecationWarning)

from logilab.common.pytest import run
run()
Comment 1 Dan Langille freebsd_committer freebsd_triage 2017-02-09 15:38:21 UTC
Issue raised with upstreadm pytest project: https://github.com/pytest-dev/pytest/issues/2243

They pointed out, this has already been raised.  https://github.com/pytest-dev/pytest/issues/1833

No change will occur upstream.

Sounds like we must resolve it ourselves.
Comment 2 Dan Langille freebsd_committer freebsd_triage 2017-02-09 15:41:44 UTC
Solution is to upgrade devel/py-logilab-common to v 1.3.0 because that version no longer ships that script.
Comment 3 Dan Langille freebsd_committer freebsd_triage 2017-02-09 16:13:31 UTC
Code review created: https://reviews.freebsd.org/D9516
Comment 4 Dan Langille freebsd_committer freebsd_triage 2017-02-10 16:18:54 UTC
Committed revision: https://svnweb.freebsd.org/ports?view=revision&revision=433793