linux - Python: Error during packaging -


i have made python package , project directory looks :

myproject   |-.pypirc   |- manifest.in   |- readme.rst   |- runnable.py # main file   |- setup.py 

the problem have libraries tkinter in runnable.py making problem using requirement installation in linux. how can make modifications according linux ? first time packaging module.

my setup.py looks this-

from setuptools import setup sys import platform  setup(name='randomdownloader',       version='0.1.6',       description='random downloader',       author='pankaj',       author_email='xyz@gmail.com',       license='mit',       py_modules=['runnable'],       install_requires=[          'youtube-dl',          'bs4',          'beautifulsoup4',          'requests',          'tkinter',       ]) 

also not getting installing in osx during installation, error getting.

command "python setup.py egg_info" failed error code 1 in /private/tmp/pip-build-vsthnrl2/urllib/

you set function run sys.platform distinguish between systems, catch output , extract first word. then, accordingly it, run apt-get install python3-tkfor debian-based distros, , osx

xcode-select --install brew uninstall python brew install python --use-brewed-tk 

you should ofcourse run of these commands via

call({command}), preceeded `import subprocess` in python script. 

this require tweaking, should point right direction.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -