blob: 0ab6c8a57199e5b902f61e55ad6c66b9ef0f5366 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import os
from setuptools import find_packages, setup
def path_to_url(path):
"""
Convert a path to URI. The path will be made absolute and
will not have quoted path parts.
"""
path = os.path.normpath(os.path.abspath(path))
drive, path = os.path.splitdrive(path)
filepath = path.split(os.path.sep)
url = "/".join(filepath)
if drive:
return "file:///" + drive + url
return "file://" + url
setup(
name="LocalEnvironMarker",
version="0.0.1",
packages=find_packages(),
extras_require={
":python_version == '2.7'": ["simple"],
},
)
|