Python Forum
run my script in a spefic version or any later one
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run my script in a spefic version or any later one
#15
You can run your own PyPi server search for setup,or the simplest way is just to have wheel on server.
Example in this post i make a wheel,so if i want to share can eg use my BitBucket Life 1.0.
So all instruction give to user is download and install.
pip install Life-1.0.0-py3-none-any.whl
The wheel did i make on Windows,but it will work fine on Linux or Mac.
Can example try to install to my Mint-19 distro and use Python 3.8,just using the link Life 1.0.
# Versions
tom@tom:~/Downloads$ python -V
Python 3.8.0
tom@tom:~/Downloads$ pip -V
pip 19.2.3 from /home/tom/.pyenv/versions/3.8.0/lib/python3.8/site-packages/pip (python 3.8)

# Install
tom@tom:~/Downloads$ pip install Life-1.0.0-py3-none-any.whl
Processing ./Life-1.0.0-py3-none-any.whl
Installing collected packages: Life
Successfully installed Life-1.0.0

# Test that it work
tom@tom:~/Downloads$ python 
Python 3.8.0 (default, Oct 25 2019, 19:38:41) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from life import answer_to_life
>>> answer_to_life(999)
Wrong answer
>>> answer_to_life(13)
Wrong answer
>>> answer_to_life(42)
Right answer <~~~~42~~~~>
>>> exit()
Also when use wheel pip get befit like like show version,uninstall,..ect.
tom@tom:~/Downloads$ pip show Life
Name: Life
Version: 1.0.0
Summary: Answer to life
Home-page: nothing.com
Author: S
Author-email: p@p
License: UNKNOWN
Location: /home/tom/.pyenv/versions/3.8.0/lib/python3.8/site-packages
Requires: 
Required-by:
 
tom@tom:~/Downloads$ pip uninstall Life
Uninstalling Life-1.0.0:
  Would remove:
    /home/tom/.pyenv/versions/3.8.0/lib/python3.8/site-packages/Life-1.0.0.dist-info/*
    /home/tom/.pyenv/versions/3.8.0/lib/python3.8/site-packages/life.py
Proceed (y/n)? y
  Successfully uninstalled Life-1.0.0
Reply


Messages In This Thread
RE: run my script in a spefic version or any later one - by snippsat - Oct-29-2019, 09:37 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020