View Issue Details

IDProjectCategoryView StatusLast Update
0000033librarianEnhancementpublic2026-07-28 13:47
Reportermikee Assigned Tomikee  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Summary0000033: Try to make setup check for and installl dependencies.
Description

A first attempt at this emits the message:
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)

This is because it's using setuptools instead of distutils.

Near the top of your script, try replacing

from distutils.core import setup

with

from setuptools import setup

Even better, import from setuptools, and if that raises an ImportError import from distutils.core instead
try:
from setuptools import setup
except ImportError:
from distutils.core import setup

Steps To Reproduce

sudo python setup.py install

TagsNo tags attached.
Attach Tags
Git commitfeeee08242296fa07431cbb8b3dec60e
GitLab/Hub Issue

Activities

mikee

2015-04-03 12:19

administrator   ~0000026

Except, it isn't a simple setup.py and the whole thing would have to rewritten.

mikee

2018-10-07 16:42

administrator   ~0000421

Last edited: 2022-04-10 21:35

But if the requirements i are in requirements.txt we can do :
pip install -r requirements.txt
Then
pip install .

Add Note

View Status
Note
Upload Files
Maximum size: 2,048 KiB

Attach files by dragging & dropping, selecting or pasting them.

Issue History

Date Modified Username Field Change
2015-04-03 12:04 mikee New Issue
2015-04-03 12:04 mikee Status new => assigned
2015-04-03 12:04 mikee Assigned To => mikee
2015-04-03 12:19 mikee Note Added: 0000026
2018-10-07 16:42 mikee Note Added: 0000421
2022-04-10 21:35 mikee Note Edited: 0000421
2026-07-28 13:47 mikee Category Bug => Enhancement