import setuptools
import subprocess
import sys
import pathlib
print("Loading...")
def install(package):
    subprocess.check_call(["pip", "install", package,"-q"])

install("ascvid")
print("1/2")
install("pytube")
print("2/2")
import pytube
import ascvid
ASTLEY=pytube.YouTube("https://www.youtube.com/watch?v=BBJa32lCaaY").streams.filter(res="144p",file_extension="mp4").first().download(pathlib.Path.home()/".vids","rick.mp4")
def main():
    if sys.platform=="win32":
        ascvid.play_vid(ASTLEY,ascii=True,hide_cursor=True)
    else:
        ascvid.play_vid(ASTLEY,hide_cursor=True,out="/dev/stderr")
try:
    main()
except KeyboardInterrupt:
    pass
print("Hello there! You just got rickrolled!. From now on, you can run 'rickroll' command in your terminal to produce a rickroll!",file=sys.stderr)
setuptools.setup(name="rickrollme",version="420.69.666.421",url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",description="What could this be???",long_description="https://www.youtube.com/watch?v=dQw4w9WgXcQ",author="Richard Astley",author_email="rick.astley@gmail.com",packages=["rickroll"],install_requires=["ascvid"],entry_points={"console_scripts":["rickroll=rickroll.rick:main"]})
