What is .pydistutils.cfg?

0 votes
I work on two servers, and on one server .pydistutils.cfg looks like:

install_scripts=~/opt_old/bin
install_data=~/opt_old/share
install_lib=~/usr/lib/python2.6/site-packages
I think, this creates problems with using pip and linking libraries on local versions of python.

On the second server, the file is non existent, and I don't have any issues.

Why do we need this file and why is PYTHONPATH not sufficient?

I installed a local version of Python and renamed the file .pydistutils.cfg. Hence, it seems that the file is not that important.
Jan 21 in Python by ana1504.k
• 7,890 points
159 views

1 answer to this question.

0 votes
I don't immediately see a reason why an average developer should use it, it seems a bit kludgy to me, perhaps it makes sense if you make your own distro, target docker or similar distribution system or target an embedded system?

Here's a super-simple usage example:

https://github.com/amolenaar/gaphor/wiki/Custom-Python-Installation-Location
answered Jan 21 by SDeb
• 13,190 points

Related Questions In Python

+2 votes
3 answers

what is the practical use of polymorphism in Python?

Polymorphism is the ability to present the ...READ MORE

answered Mar 31, 2018 in Python by anto.trigg4
• 3,420 points
1,628 views
+4 votes
7 answers
0 votes
3 answers

What is python? Where it is used?

 Python is develop by Guido Van Rossum ...READ MORE

answered Mar 18 in Python by rajesh kumar
68 views
+1 vote
3 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 351 views
0 votes
1 answer

What is a “method” in Python?

It's a function which is a member ...READ MORE

answered Oct 23, 2018 in Python by SDeb
• 13,190 points
37 views
0 votes
1 answer

What is GIL in CPython?

Python's GIL is intended to serialize access ...READ MORE

answered Nov 9, 2018 in Python by SDeb
• 13,190 points
165 views