zvodd commited on
Commit
2a3d0a7
·
1 Parent(s): a9404d6

script entry in setup.py done the **Rightway**(TM)

Browse files
scripts/pytube → pytube/__main__.py RENAMED
@@ -5,9 +5,9 @@ import sys
5
  import os
6
  import argparse
7
 
8
- from pytube import YouTube
9
- from pytube.utils import print_status, FullPaths
10
- from pytube.exceptions import PytubeError
11
  from pprint import pprint
12
 
13
 
 
5
  import os
6
  import argparse
7
 
8
+ from . import YouTube
9
+ from .utils import print_status, FullPaths
10
+ from .exceptions import PytubeError
11
  from pprint import pprint
12
 
13
 
setup.py CHANGED
@@ -21,7 +21,11 @@ setup(
21
  packages=['pytube'],
22
  url="https://github.com/nficano/pytube",
23
  license=license,
24
- scripts=['scripts/pytube'],
 
 
 
 
25
  classifiers=[
26
  "Development Status :: 5 - Production/Stable",
27
  "Environment :: Console",
@@ -47,4 +51,5 @@ setup(
47
  description=("A Python library for downloading YouTube videos."),
48
  long_description=readme,
49
  zip_safe=True,
 
50
  )
 
21
  packages=['pytube'],
22
  url="https://github.com/nficano/pytube",
23
  license=license,
24
+ entry_points={
25
+ 'console_scripts': [
26
+ 'pytube = pytube.__main__:main',
27
+ ],
28
+ },
29
  classifiers=[
30
  "Development Status :: 5 - Production/Stable",
31
  "Environment :: Console",
 
51
  description=("A Python library for downloading YouTube videos."),
52
  long_description=readme,
53
  zip_safe=True,
54
+
55
  )