setuptls/distutils Unknown distribution option: entry points

This forum is for discussion about general software issues.

setuptls/distutils Unknown distribution option: entry points

Postby hachel » Mon Apr 18, 2016 10:33 am

Hi there,

I have a raspberry pi 2 with archlinuxarm running and there seems to be something messed up with my python2-setuptools. I can't remember doing anything with any of the relevant packages, but for some reason I can't install python packages with setuptools anymore.
I've made myself a python2 program called 'move_none' that I install via a self made PKGBUILD. The package() section of said PKGBUILD looks like this:
$this->bbcode_second_pass_code('', '
package() {
cd "$srcdir/$pkgname"
python2 setup.py install --root="$pkgdir" --optimize=1
}
')
and the setup.py looks like this:
$this->bbcode_second_pass_code('', '
from setuptools import setup
setup(name='move_none',
version='1.6.0',
packages=['move_none'],
author='hachel',
description='xyz
include_package_data = True,
entry_points = {
'console_scripts': [
'move_none = move_none.main:main',
],
}
)
')
when I run either PKGBUILD or setup.py directly (with 'makepkg -s' and 'python2 setup.py install' respectively) I get those warnings:
$this->bbcode_second_pass_code('', '
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
warnings.warn(msg)
')
It seems to not be using setuptools but distutils if I read that correctly. Because it ignores entry_points I'm not getting an executable in /usr/bin.

The same pkgbuild/setup.py works on my laptop. Also there is no easy_install in /usr/bin on the raspi (don't know if that is relevant).
Anyone knows what to do about that?

thanks!

PS: oh I've got python2-setuptools iinstalled of course, otherwise it would raise an import error anyways. I tried reinstalling it too
hachel
 
Posts: 26
Joined: Fri Mar 07, 2014 3:24 pm

Return to General

Who is online

Users browsing this forum: No registered users and 5 guests