Skip to content

Commit

Permalink
unnecessary lines in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed Apr 21, 2020
1 parent 9a00b05 commit bff4ba6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

from setuptools import setup, find_packages

lines = Path(__file__).parent.joinpath("sphinx_copybutton", "__init__.py").read_text()
for line in lines.split('\n'):
if line.startswith("__version__"):
break
version = line.split(" = ")[-1].strip('"')

if (os.path.isdir('clipboard.js') and
not os.path.islink('sphinx_copybutton/_static/clipboard.min.js')):
raise SystemExit("Error: Support for symbolic links is required")
Expand Down

0 comments on commit bff4ba6

Please sign in to comment.