For Windows place twarc.py in scripts
import sys
+import os
from os.path import join
from setuptools import setup
@@ -13,6 +14,22 @@ else:
if __name__ == "__main__":
+ if os.name == "nt":
+ setup(
+ name='twarc',
+ version=__version__,
+ url='http://github.com/docnow/twarc',
+ author='Ed Summers',
+ author_email='ehs@pobox.com',
+ py_modules=['twarc', ],
+ scripts=['twarc.py', 'utils/twarc-archive.py'],
+ description='command line utility to archive Twitter search results '
+ 'as line-oriented-json',
+ install_requires=dependencies,
+ setup_requires=['pytest-runner'],
+ tests_require=['pytest'],
+ )
+ else:
setup(
name='twarc',
version=__version__,
